Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002487/0.002487, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.207/2.207, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001158/0.001158, allocations: 96.41 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5346/0.5346, allocations: 43.55 MB / 362.7 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004709/0.0004709, allocations: 16 kB / 431.5 MB, free: 6.059 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1327, allocations: 58.85 MB / 490.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4921/0.6249, allocations: 100.9 MB / 0.5773 GB, free: 1.637 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003434/0.6253, allocations: 83.95 kB / 0.5774 GB, free: 1.555 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1556/0.7808, allocations: 39.25 MB / 0.6157 GB, free: 9.902 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.7809, allocations: 4 kB / 0.6158 GB, free: 9.898 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.265e-05/0.781, allocations: 20 kB / 0.6158 GB, free: 9.879 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 349 * Number of variables: 349 Notification: Performance of Generate backend data structure: time 0.00887/0.7899, allocations: 1.778 MB / 0.6175 GB, free: 8.051 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.837e-05/0.7899, allocations: 8.031 kB / 0.6175 GB, free: 8.043 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006559/0.7906, allocations: 198.8 kB / 0.6177 GB, free: 7.84 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01129/0.8019, allocations: 1.067 MB / 0.6187 GB, free: 6.773 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001932/0.8039, allocations: 0.608 MB / 0.6193 GB, free: 6.121 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001321/0.8041, allocations: 106.7 kB / 0.6194 GB, free: 6.016 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003769/0.8045, allocations: 132 kB / 0.6196 GB, free: 5.887 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004822/0.8093, allocations: 1.508 MB / 0.621 GB, free: 4.332 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.702e-05/0.8094, allocations: 15.84 kB / 0.6211 GB, free: 4.316 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002272/0.8097, allocations: 56 kB / 0.6211 GB, free: 4.262 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-05/0.8097, allocations: 41.02 kB / 0.6211 GB, free: 4.223 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005117/0.8149, allocations: 1.599 MB / 0.6227 GB, free: 2.617 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01532/0.8302, allocations: 5.619 MB / 0.6282 GB, free: 12.73 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004306/0.8346, allocations: 2.375 MB / 0.6305 GB, free: 10.09 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003345/0.835, allocations: 110 kB / 0.6306 GB, free: 9.961 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.786e-05/0.835, allocations: 59.48 kB / 0.6307 GB, free: 9.895 MB / 458.7 MB Notification: Performance of pre-optimization done (n=129): time 5.39e-06/0.8351, allocations: 0 / 0.6307 GB, free: 9.895 MB / 458.7 MB Notification: Performance of matching and sorting (n=129): time 0.01756/0.8526, allocations: 3.134 MB / 0.6337 GB, free: 6.73 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.262e-05/0.8528, allocations: 90.11 kB / 0.6338 GB, free: 6.625 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008683/0.8536, allocations: 421 kB / 0.6342 GB, free: 6.203 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001887/0.8539, allocations: 49.7 kB / 0.6343 GB, free: 6.148 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004046/0.8543, allocations: 0.5097 MB / 0.6348 GB, free: 5.633 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005368/0.8548, allocations: 425.8 kB / 0.6352 GB, free: 5.211 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.855, allocations: 24 kB / 0.6352 GB, free: 5.188 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.8552, allocations: 358.8 kB / 0.6355 GB, free: 4.828 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001577/0.8568, allocations: 466.4 kB / 0.636 GB, free: 4.375 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001853/0.8586, allocations: 0.7181 MB / 0.6367 GB, free: 3.555 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001814/0.8605, allocations: 0.5295 MB / 0.6372 GB, free: 3.027 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/0.8605, allocations: 0 / 0.6372 GB, free: 3.027 MB / 458.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.005573/0.8661, allocations: 1.584 MB / 0.6388 GB, free: 1.43 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.548e-05/0.8662, allocations: 11.95 kB / 0.6388 GB, free: 1.418 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.198e-05/0.8663, allocations: 12 kB / 0.6388 GB, free: 1.406 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003007/0.8693, allocations: 0.5205 MB / 0.6393 GB, free: 0.8906 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001727/0.8711, allocations: 203.7 kB / 0.6395 GB, free: 0.6914 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01244/0.8835, allocations: 4.416 MB / 0.6438 GB, free: 12.14 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/0.8852, allocations: 130.7 kB / 0.6439 GB, free: 12.01 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001957/0.8855, allocations: 51.98 kB / 0.644 GB, free: 11.96 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 115 * 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 {20 30} Notification: Performance of prepare postOptimizeDAE: time 0.0009009/0.8864, allocations: 281.4 kB / 0.6442 GB, free: 11.67 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003308/0.8867, allocations: 79.06 kB / 0.6443 GB, free: 11.59 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005363/0.8921, allocations: 1.587 MB / 0.6459 GB, free: 9.992 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.918e-05/0.8922, allocations: 12.11 kB / 0.6459 GB, free: 9.98 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.8922, allocations: 3.938 kB / 0.6459 GB, free: 9.977 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.228e-05/0.8922, allocations: 7.922 kB / 0.6459 GB, free: 9.969 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008625/0.9009, allocations: 2.924 MB / 0.6487 GB, free: 6.977 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-05/0.901, allocations: 0 / 0.6487 GB, free: 6.977 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001388/0.9024, allocations: 147.8 kB / 0.6489 GB, free: 6.832 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002803/0.9052, allocations: 0.5067 MB / 0.6494 GB, free: 6.324 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002527/0.9055, allocations: 27.98 kB / 0.6494 GB, free: 6.297 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01201/0.9175, allocations: 4.421 MB / 0.6537 GB, free: 1.738 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.9176, allocations: 0 / 0.6537 GB, free: 1.738 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007337/0.9249, allocations: 2.335 MB / 0.656 GB, free: 15.37 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008674/0.9258, allocations: 291.6 kB / 0.6563 GB, free: 15.06 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002174/0.9261, allocations: 27.98 kB / 0.6563 GB, free: 15.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/0.9273, allocations: 52.05 kB / 0.6564 GB, free: 14.98 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004209/0.9277, allocations: 97.16 kB / 0.6564 GB, free: 14.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/0.9279, allocations: 36 kB / 0.6565 GB, free: 14.86 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006522/0.9285, allocations: 318.9 kB / 0.6568 GB, free: 14.54 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.9286, allocations: 4 kB / 0.6568 GB, free: 14.54 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002054/0.9306, allocations: 419 kB / 0.6572 GB, free: 14.13 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (idealClosingSwitch.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 85 * 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 {20 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.007827/0.9385, allocations: 3.08 MB / 0.6602 GB, free: 11.01 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006546/0.9451, allocations: 1.782 MB / 0.6619 GB, free: 9.219 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.156e-06/0.9452, allocations: 0 / 0.6619 GB, free: 9.219 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003908/0.9491, allocations: 1.17 MB / 0.6631 GB, free: 8.039 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000896/0.95, allocations: 86.05 kB / 0.6632 GB, free: 7.957 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3544/1.304, allocations: 11.53 MB / 0.6744 GB, free: 110.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000968/1.305, allocations: 1.108 MB / 0.6755 GB, free: 110.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001002/1.306, allocations: 409.7 kB / 0.6759 GB, free: 110.1 MB / 490.7 MB Notification: Performance of SimCode: time 3.326e-06/1.307, allocations: 0 / 0.6759 GB, free: 110.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.864/4.171, allocations: 21.57 MB / 0.697 GB, free: 109.2 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat does not exist to compare? outputFormat=mat