Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.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.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier",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.0008711/0.0008709, allocations: 99.88 kB / 16.95 MB, free: 6.387 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.00107/0.00107, allocations: 185.1 kB / 17.84 MB, free: 5.961 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.685/1.685, allocations: 205.4 MB / 224 MB, free: 13.15 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.0004483/0.0004487, allocations: 15.44 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.13, allocations: 47.57 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.00446/0.1346, allocations: 3.623 MB / 332.1 MB, free: 348 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001741/0.1363, allocations: 0.9242 MB / 333 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002006/0.1366, allocations: 15.94 kB / 333 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001989/0.1368, allocations: 67.44 kB / 333.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004691/0.1372, allocations: 162.7 kB / 333.2 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002628/0.1375, allocations: 115.9 kB / 333.3 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006984/0.1382, allocations: 0.6853 MB / 334 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000328/0.1386, allocations: 170.5 kB / 334.2 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002853/0.1389, allocations: 239.1 kB / 334.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003493/0.1392, allocations: 290.7 kB / 334.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.034e-05/0.1393, allocations: 32 kB / 334.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.307e-05/0.1394, allocations: 39.94 kB / 334.8 MB, free: 13.61 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001419/0.1395, allocations: 115.5 kB / 334.9 MB, free: 13.49 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.1397, allocations: 137.4 kB / 335 MB, free: 13.35 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000479/0.1402, allocations: 0.4985 MB / 335.5 MB, free: 12.85 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1402, allocations: 0 / 335.5 MB, free: 12.85 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1402, allocations: 0 / 335.5 MB, free: 12.85 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.597e-06/0.1402, allocations: 0 / 335.5 MB, free: 12.85 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001388/0.1416, allocations: 0.8261 MB / 336.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.1417, allocations: 12.03 kB / 336.4 MB, free: 11.96 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001682/0.1418, allocations: 115.6 kB / 336.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.142, allocations: 71.16 kB / 336.5 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004684/0.1424, allocations: 368.9 kB / 336.9 MB, free: 11.37 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.835e-05/0.1425, allocations: 41.27 kB / 336.9 MB, free: 11.33 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.805e-05/0.1426, allocations: 55.94 kB / 337 MB, free: 11.27 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000932/0.1435, allocations: 0.5694 MB / 337.6 MB, free: 10.68 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.1436, allocations: 7.938 kB / 337.6 MB, free: 10.67 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.734e-05/0.1436, allocations: 24 kB / 337.6 MB, free: 10.64 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.1436, allocations: 12 kB / 337.6 MB, free: 10.63 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008283/0.1445, allocations: 476.9 kB / 338.1 MB, free: 10.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002829/0.1473, allocations: 2.11 MB / 340.2 MB, free: 7.965 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009721/0.1483, allocations: 0.6493 MB / 340.8 MB, free: 7.285 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006195/0.1489, allocations: 402.2 kB / 341.2 MB, free: 6.891 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.079e-05/0.149, allocations: 8.562 kB / 341.2 MB, free: 6.883 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.149, allocations: 35.12 kB / 341.3 MB, free: 6.84 MB / 286.1 MB Notification: Performance of pre-optimization done (n=60): time 5.109e-06/0.149, allocations: 4 kB / 341.3 MB, free: 6.836 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.004357/0.1534, allocations: 2.067 MB / 343.3 MB, free: 4.648 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.595e-05/0.1535, allocations: 59.97 kB / 343.4 MB, free: 4.578 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004003/0.1539, allocations: 357.7 kB / 343.8 MB, free: 4.219 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.579e-05/0.1539, allocations: 33.7 kB / 343.8 MB, free: 4.18 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/0.1541, allocations: 245 kB / 344 MB, free: 3.938 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001683/0.1543, allocations: 201.1 kB / 344.2 MB, free: 3.738 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.433e-05/0.1543, allocations: 8 kB / 344.2 MB, free: 3.73 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002313/0.1545, allocations: 358.8 kB / 344.6 MB, free: 3.371 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003369/0.1549, allocations: 177 kB / 344.8 MB, free: 3.195 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003542/0.1553, allocations: 211.8 kB / 345 MB, free: 2.984 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003736/0.1556, allocations: 186.2 kB / 345.1 MB, free: 2.801 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.1556, allocations: 0 / 345.1 MB, free: 2.801 MB / 286.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00121/0.1569, allocations: 0.6773 MB / 345.8 MB, free: 2.102 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.1569, allocations: 4 kB / 345.8 MB, free: 2.098 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.1569, allocations: 0 / 345.8 MB, free: 2.098 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006751/0.1576, allocations: 255.2 kB / 346.1 MB, free: 1.836 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002764/0.1579, allocations: 63.89 kB / 346.1 MB, free: 1.773 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006582/0.1645, allocations: 6.781 MB / 352.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/0.1648, allocations: 24.02 kB / 352.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.299e-05/0.1648, allocations: 16.19 kB / 353 MB, free: 10.42 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002574/0.1651, allocations: 185.9 kB / 353.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.392e-05/0.1652, allocations: 51.34 kB / 353.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001412/0.1653, allocations: 68.95 kB / 353.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.1653, allocations: 4 kB / 353.3 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/0.1653, allocations: 0 / 353.3 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.1653, allocations: 8.453 kB / 353.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002097/0.1675, allocations: 1.357 MB / 354.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.1675, allocations: 7.938 kB / 354.6 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002687/0.1677, allocations: 59.91 kB / 354.7 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006264/0.1684, allocations: 259.1 kB / 354.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.316e-05/0.1684, allocations: 12 kB / 355 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006171/0.1746, allocations: 6.777 MB / 361.7 MB, free: 1.016 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.1746, allocations: 0 / 361.7 MB, free: 1.016 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001879/0.1765, allocations: 1.037 MB / 362.8 MB, free: 15.95 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002013/0.1767, allocations: 160.5 kB / 362.9 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.418e-05/0.1768, allocations: 8 kB / 362.9 MB, free: 15.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.1771, allocations: 27.98 kB / 363 MB, free: 15.74 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.1772, allocations: 52.52 kB / 363 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.909e-05/0.1772, allocations: 20.11 kB / 363 MB, free: 15.67 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002805/0.1775, allocations: 255.2 kB / 363.3 MB, free: 15.42 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1775, allocations: 480 / 363.3 MB, free: 15.42 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001045/0.1786, allocations: 172 kB / 363.4 MB, free: 15.25 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0022/0.1808, allocations: 1.609 MB / 365.1 MB, free: 13.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001734/0.1825, allocations: 1.049 MB / 366.1 MB, free: 12.5 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1826, allocations: 0 / 366.1 MB, free: 12.5 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00118/0.1837, allocations: 0.8492 MB / 367 MB, free: 11.6 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005636/0.1843, allocations: 77.53 kB / 367 MB, free: 11.53 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005477/0.1898, allocations: 3.439 MB / 370.5 MB, free: 8.031 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006475/0.1905, allocations: 0.8871 MB / 371.4 MB, free: 7.117 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001959/0.1907, allocations: 44.55 kB / 371.4 MB, free: 7.07 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002461/0.1909, allocations: 171.3 kB / 371.6 MB, free: 6.902 MB / 318.1 MB Notification: Performance of SimCode: time 4.9e-07/0.191, allocations: 0 / 371.6 MB, free: 6.902 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2653/0.4562, allocations: 12.17 MB / 383.7 MB, free: 50.91 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002293/0.4565, allocations: 225 kB / 384 MB, free: 50.66 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.629/3.085, allocations: 0 / 384 MB, free: 50.66 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat