Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 95.41 kB / 16.95 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 181.7 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.702/1.702, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004812/0.0004813, allocations: 16 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1351, allocations: 47.57 MB / 328.5 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse): time 0.006177/0.1414, allocations: 4.058 MB / 332.5 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004077/0.1455, allocations: 1.287 MB / 333.8 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000687/0.1462, allocations: 23.88 kB / 333.8 MB, free: 14.58 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007631/0.147, allocations: 158.9 kB / 334 MB, free: 14.43 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:5153:20-5153:43:writable] Warning: 'each' used when modifying non-array element diode_p. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:5164:20-5164:43:writable] Warning: 'each' used when modifying non-array element diode_n. Notification: Performance of NFTyping.typeBindings: time 0.0009456/0.148, allocations: 306.4 kB / 334.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004909/0.1485, allocations: 135.8 kB / 334.4 MB, free: 13.99 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002271/0.1508, allocations: 1.596 MB / 336 MB, free: 12.39 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001036/0.1518, allocations: 0.6624 MB / 336.7 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009506/0.1528, allocations: 478.1 kB / 337.1 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009377/0.1537, allocations: 0.6147 MB / 337.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001278/0.1539, allocations: 64 kB / 337.8 MB, free: 10.56 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001761/0.1541, allocations: 68 kB / 337.9 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003955/0.1545, allocations: 326.9 kB / 338.2 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003246/0.1548, allocations: 273.1 kB / 338.5 MB, free: 9.902 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001764/0.1566, allocations: 1.644 MB / 340.1 MB, free: 8.254 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.1566, allocations: 0 / 340.1 MB, free: 8.254 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.377e-06/0.1566, allocations: 0 / 340.1 MB, free: 8.254 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.161e-05/0.1566, allocations: 0 / 340.1 MB, free: 8.254 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.003093/0.1597, allocations: 1.412 MB / 341.5 MB, free: 6.785 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.163e-05/0.1598, allocations: 8.031 kB / 341.5 MB, free: 6.777 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002499/0.1601, allocations: 164.1 kB / 341.7 MB, free: 6.609 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002419/0.1603, allocations: 138.3 kB / 341.8 MB, free: 6.473 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001356/0.1617, allocations: 0.8326 MB / 342.7 MB, free: 5.598 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.418e-05/0.1618, allocations: 73.95 kB / 342.7 MB, free: 5.527 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001948/0.162, allocations: 103.9 kB / 342.8 MB, free: 5.426 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002987/0.165, allocations: 1.435 MB / 344.3 MB, free: 3.957 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.112e-05/0.165, allocations: 0 / 344.3 MB, free: 3.957 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.1651, allocations: 40 kB / 344.3 MB, free: 3.918 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-05/0.1652, allocations: 42 kB / 344.4 MB, free: 3.879 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002718/0.1679, allocations: 1.292 MB / 345.6 MB, free: 2.586 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007266/0.1752, allocations: 4.351 MB / 350 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002579/0.1779, allocations: 1.978 MB / 352 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001192/0.1791, allocations: 0.6298 MB / 352.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.738e-05/0.1792, allocations: 4.656 kB / 352.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001129/0.1803, allocations: 0.5976 MB / 353.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=75): time 3.065e-06/0.1803, allocations: 0 / 353.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=75): time 0.007489/0.1878, allocations: 2.812 MB / 356 MB, free: 7.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.937e-05/0.188, allocations: 111.5 kB / 356.1 MB, free: 7.707 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001649/0.1896, allocations: 0.813 MB / 356.9 MB, free: 6.883 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.108e-05/0.1897, allocations: 41.7 kB / 357 MB, free: 6.836 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000665/0.1904, allocations: 491.7 kB / 357.5 MB, free: 6.348 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002954/0.1907, allocations: 240.5 kB / 357.7 MB, free: 6.109 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.046e-05/0.1908, allocations: 16 kB / 357.7 MB, free: 6.094 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002801/0.1911, allocations: 398.7 kB / 358.1 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007487/0.1918, allocations: 401.7 kB / 358.5 MB, free: 5.301 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008757/0.1927, allocations: 0.5455 MB / 359 MB, free: 4.699 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009077/0.1937, allocations: 449.9 kB / 359.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-05/0.1937, allocations: 0 / 359.5 MB, free: 4.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002583/0.1963, allocations: 1.295 MB / 360.8 MB, free: 2.953 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.425e-05/0.1963, allocations: 8 kB / 360.8 MB, free: 2.945 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.257e-05/0.1964, allocations: 7.953 kB / 360.8 MB, free: 2.938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00127/0.1976, allocations: 468.6 kB / 361.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000415/0.1981, allocations: 103.8 kB / 361.3 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008331/0.2064, allocations: 5.13 MB / 366.5 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008826/0.2073, allocations: 87.39 kB / 366.6 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001414/0.2075, allocations: 28 kB / 366.6 MB, free: 12.99 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 30} Notification: Performance of prepare postOptimizeDAE: time 0.001349/0.2089, allocations: 459.2 kB / 367 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003455/0.2092, allocations: 98.89 kB / 367.1 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003536/0.2096, allocations: 108.6 kB / 367.2 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.2096, allocations: 8 kB / 367.2 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.2096, allocations: 0 / 367.2 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/0.2097, allocations: 3.984 kB / 367.3 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00614/0.2158, allocations: 2.627 MB / 369.9 MB, free: 9.625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.2159, allocations: 0 / 369.9 MB, free: 9.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003179/0.2162, allocations: 63.89 kB / 369.9 MB, free: 9.562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001041/0.2172, allocations: 464.5 kB / 370.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.674e-05/0.2173, allocations: 16 kB / 370.4 MB, free: 9.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007538/0.2249, allocations: 5.098 MB / 375.5 MB, free: 3.848 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2249, allocations: 4 kB / 375.5 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003464/0.2284, allocations: 1.931 MB / 377.4 MB, free: 1.895 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006375/0.2291, allocations: 267.9 kB / 377.7 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002703/0.2293, allocations: 16 kB / 377.7 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005669/0.2299, allocations: 43.95 kB / 377.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002286/0.2302, allocations: 80.53 kB / 377.8 MB, free: 1.477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.868e-05/0.2302, allocations: 20 kB / 377.9 MB, free: 1.457 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00122/0.2315, allocations: 0.5849 MB / 378.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.2315, allocations: 0 / 378.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001793/0.2333, allocations: 339.1 kB / 378.8 MB, free: 0.543 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y) * Number of discrete states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.2778/0.5111, allocations: 2.493 MB / 381.3 MB, free: 51.91 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003121/0.5143, allocations: 1.282 MB / 382.6 MB, free: 51.77 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.158e-06/0.5144, allocations: 5.031 kB / 382.6 MB, free: 51.77 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001628/0.516, allocations: 0.8242 MB / 383.4 MB, free: 51.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002055/0.5181, allocations: 260.6 kB / 383.6 MB, free: 51.61 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01403/0.5321, allocations: 7.127 MB / 390.8 MB, free: 48.45 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001046/0.5332, allocations: 1.323 MB / 392.1 MB, free: 47.64 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005866/0.5338, allocations: 149.6 kB / 392.2 MB, free: 47.62 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004487/0.5343, allocations: 372.8 kB / 392.6 MB, free: 47.32 MB / 318.1 MB Notification: Performance of SimCode: time 1.182e-06/0.5343, allocations: 0 / 392.6 MB, free: 47.32 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04917/0.5835, allocations: 26.5 MB / 419.1 MB, free: 24.73 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003151/0.5839, allocations: 269.5 kB / 419.4 MB, free: 24.37 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.578/3.162, allocations: 11.89 kB / 419.4 MB, free: 24.36 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat does not exist to compare? outputFormat=mat