Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.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.MultiPhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_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.001688/0.001688, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.124/2.124, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001162/0.001162, allocations: 97.11 kB / 270.9 MB, free: 8.375 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.5192/0.5192, allocations: 43.56 MB / 362.7 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004687/0.0004687, allocations: 12 kB / 431.5 MB, free: 6.074 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1286, allocations: 58.84 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5084/0.637, allocations: 113.2 MB / 0.5894 GB, free: 5.402 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003001/0.6374, allocations: 83.94 kB / 0.5895 GB, free: 5.32 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.312/2.95, allocations: 469.4 MB / 1.048 GB, free: 14.78 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.585e-06/2.95, allocations: 0 / 1.048 GB, free: 14.78 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.001094/2.951, allocations: 299.7 kB / 1.048 GB, free: 14.49 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3927 * Number of variables: 3927 Notification: Performance of Generate backend data structure: time 0.08068/3.032, allocations: 14.08 MB / 1.062 GB, free: 324 kB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.832e-05/3.032, allocations: 12.03 kB / 1.062 GB, free: 312 kB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.9227/3.954, allocations: 2.028 MB / 1.064 GB, free: 38.44 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07252/4.027, allocations: 8.569 MB / 1.072 GB, free: 37.94 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03198/4.059, allocations: 8.832 MB / 1.081 GB, free: 37.45 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002133/4.061, allocations: 1.028 MB / 1.082 GB, free: 37.42 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008677/4.07, allocations: 1.306 MB / 1.083 GB, free: 37.41 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09003/4.16, allocations: 24.95 MB / 1.108 GB, free: 35.82 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009497/4.161, allocations: 19.34 kB / 1.108 GB, free: 35.81 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006948/4.168, allocations: 0.5652 MB / 1.108 GB, free: 35.81 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001858/4.17, allocations: 0.9335 MB / 1.109 GB, free: 35.79 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07123/4.241, allocations: 22.54 MB / 1.131 GB, free: 35.66 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2253/4.467, allocations: 76.4 MB / 1.206 GB, free: 4.828 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06194/4.529, allocations: 21.21 MB / 1.226 GB, free: 6.168 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1612/4.69, allocations: 39.44 MB / 1.265 GB, free: 12.9 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001817/4.69, allocations: 139.7 kB / 1.265 GB, free: 12.76 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=1188): time 1.856e-05/4.69, allocations: 0 / 1.265 GB, free: 12.76 MB / 0.5574 GB Notification: Performance of matching and sorting (n=1188): time 0.5736/5.264, allocations: 37.23 MB / 1.301 GB, free: 71.14 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/5.264, allocations: 181.1 kB / 1.302 GB, free: 71.04 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008858/5.273, allocations: 3.091 MB / 1.305 GB, free: 70.82 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.003133/5.276, allocations: 178.8 kB / 1.305 GB, free: 70.79 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.003913/5.28, allocations: 4.297 MB / 1.309 GB, free: 69.25 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.007539/5.287, allocations: 3.869 MB / 1.313 GB, free: 66.72 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003527/5.291, allocations: 173.3 kB / 1.313 GB, free: 66.72 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.001814/5.293, allocations: 0.7526 MB / 1.314 GB, free: 66.39 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02371/5.317, allocations: 8.081 MB / 1.321 GB, free: 66.37 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02702/5.344, allocations: 9.576 MB / 1.331 GB, free: 65.08 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02934/5.373, allocations: 9.399 MB / 1.34 GB, free: 64.96 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.339e-05/5.373, allocations: 10.12 kB / 1.34 GB, free: 64.96 MB / 0.5574 GB Notification: Performance of matching and sorting (n=1360) (initialization): time 0.07605/5.449, allocations: 23.75 MB / 1.363 GB, free: 64.41 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 7.117e-05/5.449, allocations: 18.25 kB / 1.363 GB, free: 64.41 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001449/5.45, allocations: 40.72 kB / 1.363 GB, free: 64.41 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03699/5.487, allocations: 10.34 MB / 1.373 GB, free: 63.57 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01155/5.498, allocations: 1.349 MB / 1.375 GB, free: 63.54 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04995/5.548, allocations: 19.55 MB / 1.394 GB, free: 54.28 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01183/5.56, allocations: 1.123 MB / 1.395 GB, free: 53.67 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003775/5.564, allocations: 386.3 kB / 1.395 GB, free: 53.59 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (695): * Single equations (assignments): 628 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 63 * 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: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,99 312} Notification: Performance of prepare postOptimizeDAE: time 0.019/5.583, allocations: 5.376 MB / 1.401 GB, free: 51.31 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0049/5.588, allocations: 0.5968 MB / 1.401 GB, free: 50.98 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08185/5.67, allocations: 24.72 MB / 1.425 GB, free: 40.91 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005951/5.671, allocations: 330.3 kB / 1.426 GB, free: 40.74 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.808e-05/5.671, allocations: 0 / 1.426 GB, free: 40.74 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002296/5.671, allocations: 46.5 kB / 1.426 GB, free: 40.74 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1329/5.804, allocations: 43.7 MB / 1.468 GB, free: 8.152 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001703/5.804, allocations: 4 kB / 1.468 GB, free: 8.148 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009948/5.814, allocations: 1.082 MB / 1.469 GB, free: 7.336 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03597/5.85, allocations: 10.33 MB / 1.479 GB, free: 14.82 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00345/5.853, allocations: 245.9 kB / 1.48 GB, free: 14.61 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5278/6.381, allocations: 19.47 MB / 1.499 GB, free: 96.08 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/6.381, allocations: 2.5 kB / 1.499 GB, free: 96.08 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1137/6.495, allocations: 36.37 MB / 1.534 GB, free: 95.4 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01042/6.505, allocations: 2.688 MB / 1.537 GB, free: 95.19 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00462/6.51, allocations: 156.1 kB / 1.537 GB, free: 95.19 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01065/6.521, allocations: 0.5269 MB / 1.537 GB, free: 95.19 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005136/6.526, allocations: 0.8823 MB / 1.538 GB, free: 95.18 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00342/6.53, allocations: 315.1 kB / 1.539 GB, free: 95.18 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.007372/6.537, allocations: 2.365 MB / 1.541 GB, free: 95.04 MB / 0.573 GB Notification: Performance of sort global known variables: time 7.42e-07/6.537, allocations: 0 / 1.541 GB, free: 95.04 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01939/6.556, allocations: 3.469 MB / 1.544 GB, free: 94.65 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealClosingSwitch.idealClosingSwitch[1].pin_p.reference.gamma) * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (565): * Single equations (assignments): 498 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 63 * 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: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,99 312} Notification: Performance of Backend phase and start with SimCode phase: time 0.1119/6.668, allocations: 37.28 MB / 1.581 GB, free: 90.2 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.06405/6.733, allocations: 20.19 MB / 1.6 GB, free: 83.1 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/6.733, allocations: 3.719 kB / 1.6 GB, free: 83.1 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0371/6.77, allocations: 11.12 MB / 1.611 GB, free: 79.05 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01256/6.782, allocations: 1.156 MB / 1.612 GB, free: 78.75 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7287/7.511, allocations: 117.4 MB / 1.727 GB, free: 105.4 MB / 0.5887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02282/7.534, allocations: 9.402 MB / 1.736 GB, free: 104.5 MB / 0.5887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01427/7.548, allocations: 4.831 MB / 1.741 GB, free: 104.5 MB / 0.5887 GB Notification: Performance of SimCode: time 1.714e-06/7.548, allocations: 0 / 1.741 GB, free: 104.5 MB / 0.5887 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.74/14.29, allocations: 0.5282 GB / 2.269 GB, free: 96.15 MB / 0.6043 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_Ideal.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal_res.mat does not exist to compare? outputFormat=mat