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.001005/0.001006, allocations: 95.38 kB / 16.94 MB, free: 6.441 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.0009507/0.0009507, allocations: 185.5 kB / 17.83 MB, free: 6.008 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.428/1.428, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004549/0.0004551, allocations: 19.44 kB / 280.9 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09609/0.09655, allocations: 47.56 MB / 328.4 MB, free: 4.016 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.003929/0.1005, allocations: 3.383 MB / 331.8 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001989/0.1026, allocations: 0.9634 MB / 332.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003897/0.103, allocations: 12 kB / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001976/0.1032, allocations: 67.44 kB / 332.8 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007299/0.1039, allocations: 223.4 kB / 333.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003606/0.1043, allocations: 115.8 kB / 333.2 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000676/0.105, allocations: 496 kB / 333.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003409/0.1053, allocations: 166.5 kB / 333.8 MB, free: 14.58 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003422/0.1057, allocations: 243 kB / 334.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003877/0.1061, allocations: 282.8 kB / 334.3 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.969e-05/0.1062, allocations: 35.94 kB / 334.4 MB, free: 14.03 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.016e-05/0.1063, allocations: 36 kB / 334.4 MB, free: 14 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.1064, allocations: 115.6 kB / 334.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001516/0.1066, allocations: 133.4 kB / 334.6 MB, free: 13.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005261/0.1071, allocations: 0.4985 MB / 335.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1071, allocations: 0 / 335.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1071, allocations: 0 / 335.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.1072, allocations: 0 / 335.1 MB, free: 13.25 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.001392/0.1086, allocations: 0.8261 MB / 336 MB, free: 12.37 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.1086, allocations: 12.03 kB / 336 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001632/0.1088, allocations: 115.6 kB / 336.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001132/0.1089, allocations: 71.16 kB / 336.2 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000461/0.1094, allocations: 364.9 kB / 336.5 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.492e-05/0.1094, allocations: 45.27 kB / 336.6 MB, free: 11.72 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.924e-05/0.1095, allocations: 52 kB / 336.6 MB, free: 11.67 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009997/0.1105, allocations: 0.5654 MB / 337.2 MB, free: 11.08 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.1106, allocations: 0 / 337.2 MB, free: 11.08 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.749e-05/0.1106, allocations: 28 kB / 337.2 MB, free: 11.05 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.1107, allocations: 12 kB / 337.2 MB, free: 11.04 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000895/0.1116, allocations: 480.9 kB / 337.7 MB, free: 10.57 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002772/0.1143, allocations: 2.11 MB / 339.8 MB, free: 8.367 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008774/0.1152, allocations: 0.6376 MB / 340.4 MB, free: 7.699 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.358e-05/0.1153, allocations: 8.5 kB / 340.4 MB, free: 7.691 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/0.1153, allocations: 43.06 kB / 340.5 MB, free: 7.641 MB / 286.1 MB Notification: Performance of pre-optimization done (n=60): time 2.414e-06/0.1153, allocations: 0 / 340.5 MB, free: 7.641 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.004129/0.1195, allocations: 2.069 MB / 342.6 MB, free: 5.449 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.878e-05/0.1195, allocations: 55.97 kB / 342.6 MB, free: 5.383 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004044/0.1199, allocations: 361.7 kB / 343 MB, free: 5.02 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.842e-05/0.12, allocations: 37.7 kB / 343 MB, free: 4.977 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.1202, allocations: 237 kB / 343.2 MB, free: 4.742 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001341/0.1203, allocations: 201.1 kB / 343.4 MB, free: 4.543 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.23e-05/0.1203, allocations: 8 kB / 343.4 MB, free: 4.535 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1205, allocations: 362.8 kB / 343.8 MB, free: 4.172 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003116/0.1208, allocations: 169 kB / 344 MB, free: 4.008 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003412/0.1211, allocations: 219.8 kB / 344.2 MB, free: 3.789 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003195/0.1214, allocations: 174.2 kB / 344.3 MB, free: 3.617 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.1215, allocations: 0 / 344.3 MB, free: 3.617 MB / 286.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001096/0.1226, allocations: 0.6773 MB / 345 MB, free: 2.922 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.1226, allocations: 8 kB / 345 MB, free: 2.914 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.1226, allocations: 0 / 345 MB, free: 2.914 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006715/0.1233, allocations: 263.1 kB / 345.3 MB, free: 2.645 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002805/0.1236, allocations: 59.97 kB / 345.3 MB, free: 2.586 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006315/0.1299, allocations: 6.836 MB / 352.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003252/0.1303, allocations: 19.98 kB / 352.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.352e-05/0.1303, allocations: 20.06 kB / 352.2 MB, free: 11.17 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.0002399/0.1306, allocations: 177.7 kB / 352.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.751e-05/0.1306, allocations: 51.34 kB / 352.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001096/0.1308, allocations: 68.95 kB / 352.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.1308, allocations: 4 kB / 352.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/0.1308, allocations: 4 kB / 352.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.1308, allocations: 7.812 kB / 352.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002031/0.1328, allocations: 1.361 MB / 353.9 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.1329, allocations: 0.9688 kB / 353.9 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002843/0.1331, allocations: 59.91 kB / 353.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006345/0.1338, allocations: 263.1 kB / 354.2 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.271e-05/0.1338, allocations: 16 kB / 354.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006176/0.14, allocations: 6.84 MB / 361.1 MB, free: 1.703 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.1401, allocations: 32 / 361.1 MB, free: 1.703 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001673/0.1417, allocations: 1.041 MB / 362.1 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000191/0.142, allocations: 156.5 kB / 362.2 MB, free: 476 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.736e-05/0.142, allocations: 12 kB / 362.3 MB, free: 464 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.1423, allocations: 23.98 kB / 362.3 MB, free: 440 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.1424, allocations: 52.42 kB / 362.3 MB, free: 384 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.185e-05/0.1425, allocations: 16 kB / 362.3 MB, free: 368 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002881/0.1428, allocations: 259.2 kB / 362.6 MB, free: 112 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1428, allocations: 0 / 362.6 MB, free: 112 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009348/0.1437, allocations: 176 kB / 362.8 MB, free: 15.93 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.001988/0.1457, allocations: 1.598 MB / 364.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.1473, allocations: 1.041 MB / 365.4 MB, free: 13.21 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1473, allocations: 4 kB / 365.4 MB, free: 13.21 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.1484, allocations: 0.8491 MB / 366.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004733/0.1489, allocations: 73.52 kB / 366.3 MB, free: 12.23 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005084/0.154, allocations: 3.583 MB / 369.9 MB, free: 8.594 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004743/0.1545, allocations: 0.8987 MB / 370.8 MB, free: 7.668 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002205/0.1547, allocations: 52.53 kB / 370.9 MB, free: 7.613 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002039/0.1549, allocations: 171.4 kB / 371 MB, free: 7.445 MB / 318.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1549, allocations: 0 / 371 MB, free: 7.445 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1944/0.3493, allocations: 12.14 MB / 383.2 MB, free: 50.65 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000161/0.3495, allocations: 211.1 kB / 383.4 MB, free: 50.41 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.083/2.432, allocations: 4 kB / 383.4 MB, free: 50.4 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