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.001588/0.001587, allocations: 183.7 kB / 16.4 MB, free: 5.754 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.134/2.134, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001926/0.001926, allocations: 91.34 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.5443/0.5443, allocations: 43.56 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006626/0.0006627, allocations: 12 kB / 431.5 MB, free: 6.059 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1466, allocations: 58.84 MB / 490.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal): time 0.3694/0.5161, allocations: 18.35 MB / 0.4967 GB, free: 34.41 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01702/0.5332, allocations: 5.281 MB / 0.5019 GB, free: 33.29 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006391/0.5396, allocations: 152.2 kB / 0.502 GB, free: 33.26 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005876/0.5455, allocations: 1.102 MB / 0.5031 GB, free: 32.69 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01203/0.5576, allocations: 1.961 MB / 0.505 GB, free: 32.02 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007233/0.5649, allocations: 1.316 MB / 0.5063 GB, free: 31.31 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01927/0.5842, allocations: 9.373 MB / 0.5155 GB, free: 26.21 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06753/0.6518, allocations: 26.32 MB / 0.5412 GB, free: 13.77 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01291/0.6647, allocations: 5.089 MB / 0.5461 GB, free: 11.41 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01475/0.6795, allocations: 5.725 MB / 0.5517 GB, free: 8.699 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00478/0.6844, allocations: 0.836 MB / 0.5525 GB, free: 8.699 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008831/0.6933, allocations: 1.028 MB / 0.5536 GB, free: 8.023 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005916/0.6992, allocations: 2.639 MB / 0.5561 GB, free: 5.75 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00746/0.7067, allocations: 2.815 MB / 0.5589 GB, free: 2.922 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03945/0.7462, allocations: 24.01 MB / 0.5823 GB, free: 12.89 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.7463, allocations: 3.938 kB / 0.5823 GB, free: 12.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 6.202e-06/0.7463, allocations: 4 kB / 0.5823 GB, free: 12.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000883/0.7472, allocations: 0 / 0.5823 GB, free: 12.89 MB / 410.7 MB 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.07595/0.8232, allocations: 15.83 MB / 0.5978 GB, free: 12.95 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.814e-05/0.8233, allocations: 8.031 kB / 0.5978 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009607/0.8329, allocations: 2.054 MB / 0.5998 GB, free: 10.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1059/0.9389, allocations: 12.75 MB / 0.6123 GB, free: 14.1 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02668/0.9656, allocations: 7.801 MB / 0.6199 GB, free: 6.215 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001854/0.9675, allocations: 1.072 MB / 0.6209 GB, free: 5.141 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007529/0.9751, allocations: 1.394 MB / 0.6223 GB, free: 3.746 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08816/1.063, allocations: 23.88 MB / 0.6456 GB, free: 11.77 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007701/1.064, allocations: 15.89 kB / 0.6456 GB, free: 11.75 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006261/1.07, allocations: 0.5781 MB / 0.6462 GB, free: 11.17 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00131/1.072, allocations: 0.7335 MB / 0.6469 GB, free: 10.44 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07539/1.147, allocations: 22.35 MB / 0.6687 GB, free: 4.055 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8773/2.025, allocations: 73.07 MB / 0.7401 GB, free: 69.76 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03747/2.062, allocations: 31.56 MB / 0.7709 GB, free: 40.44 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04593/2.108, allocations: 15.51 MB / 0.786 GB, free: 30.74 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.663e-05/2.108, allocations: 88.98 kB / 0.7861 GB, free: 30.66 MB / 490.8 MB Notification: Performance of pre-optimization done (n=465): time 8.486e-06/2.108, allocations: 0 / 0.7861 GB, free: 30.66 MB / 490.8 MB Notification: Performance of matching and sorting (n=465): time 0.06604/2.174, allocations: 15.37 MB / 0.8011 GB, free: 21.46 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/2.174, allocations: 124.7 kB / 0.8013 GB, free: 21.32 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01121/2.186, allocations: 5.158 MB / 0.8063 GB, free: 16.17 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001078/2.187, allocations: 105.6 kB / 0.8064 GB, free: 16.06 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004883/2.192, allocations: 5.891 MB / 0.8122 GB, free: 10.14 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00274/2.194, allocations: 1.594 MB / 0.8137 GB, free: 8.559 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001068/2.196, allocations: 160 kB / 0.8139 GB, free: 8.402 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0005818/2.196, allocations: 0.6333 MB / 0.8145 GB, free: 7.762 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01077/2.207, allocations: 4.176 MB / 0.8186 GB, free: 3.582 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01437/2.221, allocations: 7.539 MB / 0.8259 GB, free: 10.45 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01564/2.237, allocations: 5.72 MB / 0.8315 GB, free: 4.723 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001132/2.237, allocations: 32 kB / 0.8315 GB, free: 4.691 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1006) (initialization): time 0.03894/2.276, allocations: 13.17 MB / 0.8444 GB, free: 7.496 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/2.276, allocations: 56 kB / 0.8445 GB, free: 7.441 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002195/2.277, allocations: 112 kB / 0.8446 GB, free: 7.332 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01198/2.289, allocations: 3.071 MB / 0.8476 GB, free: 4.254 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01224/2.301, allocations: 1.685 MB / 0.8492 GB, free: 2.566 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02747/2.328, allocations: 11.13 MB / 0.8601 GB, free: 7.25 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01164/2.34, allocations: 1.123 MB / 0.8612 GB, free: 6.117 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003523/2.344, allocations: 408 kB / 0.8616 GB, free: 5.719 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 518 * 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 (859): * Single equations (assignments): 856 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {20 30,20 28,20 28} Notification: Performance of prepare postOptimizeDAE: time 0.0285/2.372, allocations: 5.46 MB / 0.8669 GB, free: 248 kB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001796/2.374, allocations: 0.5054 MB / 0.8674 GB, free: 15.73 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0306/2.405, allocations: 9.616 MB / 0.8768 GB, free: 6.082 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.292e-05/2.405, allocations: 52 kB / 0.8768 GB, free: 6.031 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/2.405, allocations: 0 / 0.8768 GB, free: 6.031 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001097/2.405, allocations: 23.91 kB / 0.8768 GB, free: 6.008 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4565/2.862, allocations: 20.67 MB / 0.897 GB, free: 164.3 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.582e-05/2.862, allocations: 0 / 0.897 GB, free: 164.3 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006598/2.868, allocations: 0.7363 MB / 0.8977 GB, free: 164.2 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01093/2.879, allocations: 2.914 MB / 0.9006 GB, free: 163.5 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001123/2.88, allocations: 98.7 kB / 0.9007 GB, free: 163.4 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02344/2.904, allocations: 10.93 MB / 0.9114 GB, free: 157.9 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/2.904, allocations: 7.891 kB / 0.9114 GB, free: 157.9 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0385/2.942, allocations: 14.08 MB / 0.9251 GB, free: 152.6 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005079/2.948, allocations: 1.324 MB / 0.9264 GB, free: 152 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002105/2.95, allocations: 79.02 kB / 0.9265 GB, free: 151.9 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006682/2.956, allocations: 388.2 kB / 0.9269 GB, free: 151.9 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00201/2.959, allocations: 341.9 kB / 0.9272 GB, free: 151.8 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009284/2.959, allocations: 128.6 kB / 0.9273 GB, free: 151.8 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.01007/2.97, allocations: 3.428 MB / 0.9307 GB, free: 150.6 MB / 0.5418 GB Notification: Performance of sort global known variables: time 6.11e-07/2.97, allocations: 0 / 0.9307 GB, free: 150.6 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01389/2.984, allocations: 3.3 MB / 0.9339 GB, free: 149.6 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (voltageSource.plug_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 (357): * Single equations (assignments): 354 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {20 30,20 28,20 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03891/3.023, allocations: 14.87 MB / 0.9484 GB, free: 143.3 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.02896/3.052, allocations: 10.57 MB / 0.9587 GB, free: 136 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/3.052, allocations: 4.062 kB / 0.9587 GB, free: 136 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.01589/3.067, allocations: 5.023 MB / 0.9636 GB, free: 131.7 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009826/3.077, allocations: 1.139 MB / 0.9647 GB, free: 130.8 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5684/3.646, allocations: 146 MB / 1.107 GB, free: 161.5 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01971/3.666, allocations: 9.058 MB / 1.116 GB, free: 158.5 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01149/3.677, allocations: 4.818 MB / 1.121 GB, free: 154.4 MB / 0.5418 GB Notification: Performance of SimCode: time 1.883e-06/3.677, allocations: 3.031 kB / 1.121 GB, free: 154.4 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.508/10.18, allocations: 437.6 MB / 1.548 GB, free: 157.3 MB / 0.5574 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