Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection.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.SerialConnection,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_SerialConnection",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.001535/0.001535, allocations: 185.8 kB / 16.41 MB, free: 5.727 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.079/2.079, 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.001146/0.001146, allocations: 83.31 kB / 270.9 MB, free: 8.371 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.5231/0.5231, allocations: 43.55 MB / 362.7 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004825/0.0004825, allocations: 16 kB / 431.5 MB, free: 5.824 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1262, allocations: 58.85 MB / 490.3 MB, free: 10.89 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4955/0.6218, allocations: 107.3 MB / 0.5836 GB, free: 11.07 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003286/0.6222, allocations: 83.95 kB / 0.5837 GB, free: 10.98 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.052/2.674, allocations: 388.2 MB / 0.9628 GB, free: 49.27 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.605e-06/2.674, allocations: 0 / 0.9628 GB, free: 49.27 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0008708/2.675, allocations: 257.8 kB / 0.963 GB, free: 49.25 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3365 * Number of variables: 3365 Notification: Performance of Generate backend data structure: time 0.05663/2.731, allocations: 11 MB / 0.9738 GB, free: 45.79 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/2.731, allocations: 11.03 kB / 0.9738 GB, free: 45.79 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009084/2.741, allocations: 1.746 MB / 0.9755 GB, free: 45.04 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06882/2.809, allocations: 8.43 MB / 0.9837 GB, free: 43.79 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02511/2.835, allocations: 7.494 MB / 0.9911 GB, free: 39.92 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00154/2.836, allocations: 0.864 MB / 0.9919 GB, free: 39.55 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006593/2.843, allocations: 1.122 MB / 0.993 GB, free: 39.18 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07201/2.915, allocations: 21.17 MB / 1.014 GB, free: 27.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007944/2.916, allocations: 12.94 kB / 1.014 GB, free: 27.79 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005759/2.921, allocations: 493.9 kB / 1.014 GB, free: 27.32 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001418/2.923, allocations: 0.8435 MB / 1.015 GB, free: 26.57 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06216/2.985, allocations: 19.88 MB / 1.034 GB, free: 8.629 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6409/3.626, allocations: 60.05 MB / 1.093 GB, free: 47.11 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04831/3.674, allocations: 24.02 MB / 1.116 GB, free: 53.25 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002131/3.677, allocations: 363.8 kB / 1.117 GB, free: 53.12 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001746/3.677, allocations: 142 kB / 1.117 GB, free: 53.07 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=1196): time 1.962e-05/3.677, allocations: 0 / 1.117 GB, free: 53.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1196): time 0.09703/3.774, allocations: 37.51 MB / 1.154 GB, free: 38.32 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001323/3.774, allocations: 157.4 kB / 1.154 GB, free: 38.25 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007368/3.781, allocations: 2.814 MB / 1.157 GB, free: 37.31 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.002993/3.785, allocations: 184.7 kB / 1.157 GB, free: 37.16 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00293/3.788, allocations: 3.3 MB / 1.16 GB, free: 35.19 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0069/3.794, allocations: 3.898 MB / 1.164 GB, free: 32.25 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003169/3.798, allocations: 172.7 kB / 1.164 GB, free: 32.12 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001502/3.799, allocations: 0.7193 MB / 1.165 GB, free: 31.63 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01983/3.819, allocations: 7.096 MB / 1.172 GB, free: 28.93 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02199/3.841, allocations: 8.023 MB / 1.179 GB, free: 25.57 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02378/3.865, allocations: 8.353 MB / 1.188 GB, free: 22.07 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.697e-05/3.865, allocations: 3.438 kB / 1.188 GB, free: 22.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1268) (initialization): time 0.05988/3.925, allocations: 18.7 MB / 1.206 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 5.125e-05/3.925, allocations: 7.781 kB / 1.206 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.532e-05/3.925, allocations: 11.47 kB / 1.206 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01088/3.936, allocations: 3.771 MB / 1.209 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01627/3.952, allocations: 1.911 MB / 1.211 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03097/3.984, allocations: 21.65 MB / 1.232 GB, free: 12.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01104/3.995, allocations: 1.127 MB / 1.234 GB, free: 12.21 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003157/3.998, allocations: 340.3 kB / 1.234 GB, free: 12.13 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (933): * Single equations (assignments): 818 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 99 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 10 {6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.01495/4.013, allocations: 4.533 MB / 1.238 GB, free: 8.703 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003205/4.016, allocations: 0.5709 MB / 1.239 GB, free: 8.125 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07443/4.09, allocations: 20.47 MB / 1.259 GB, free: 6.926 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006298/4.091, allocations: 290.3 kB / 1.259 GB, free: 6.676 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-05/4.091, allocations: 4 kB / 1.259 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000254/4.091, allocations: 55.31 kB / 1.259 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5875/4.679, allocations: 38.87 MB / 1.297 GB, free: 105.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001524/4.679, allocations: 0 / 1.297 GB, free: 105.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01559/4.695, allocations: 1.775 MB / 1.299 GB, free: 105.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01159/4.706, allocations: 3.749 MB / 1.303 GB, free: 105.3 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003105/4.71, allocations: 253.4 kB / 1.303 GB, free: 105.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0289/4.739, allocations: 21.52 MB / 1.324 GB, free: 92.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/4.739, allocations: 4.312 kB / 1.324 GB, free: 92.7 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09229/4.831, allocations: 30.44 MB / 1.354 GB, free: 88.13 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002654/4.834, allocations: 0.8586 MB / 1.354 GB, free: 87.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004151/4.838, allocations: 165 kB / 1.355 GB, free: 87.55 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01048/4.848, allocations: 0.5925 MB / 1.355 GB, free: 87.42 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004749/4.853, allocations: 0.8482 MB / 1.356 GB, free: 87.26 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003228/4.856, allocations: 322.4 kB / 1.356 GB, free: 87.18 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.005713/4.862, allocations: 2.182 MB / 1.358 GB, free: 86.41 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.22e-07/4.862, allocations: 0 / 1.358 GB, free: 86.41 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01516/4.877, allocations: 3.083 MB / 1.361 GB, free: 85.84 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (921): * Single equations (assignments): 806 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 99 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 10 {6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.08942/4.967, allocations: 31.33 MB / 1.392 GB, free: 72.55 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.05053/5.018, allocations: 17.81 MB / 1.409 GB, free: 60.78 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.166e-05/5.018, allocations: 4 kB / 1.409 GB, free: 60.78 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0277/5.045, allocations: 9.808 MB / 1.419 GB, free: 52.34 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01149/5.057, allocations: 0.9976 MB / 1.42 GB, free: 51.58 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6831/5.74, allocations: 89.87 MB / 1.508 GB, free: 99.63 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02231/5.762, allocations: 8.013 MB / 1.516 GB, free: 98.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01646/5.779, allocations: 4.176 MB / 1.52 GB, free: 98.7 MB / 0.5573 GB Notification: Performance of SimCode: time 2.224e-06/5.779, allocations: 3.172 kB / 1.52 GB, free: 98.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.01/15.79, allocations: 1.205 GB / 2.724 GB, free: 89.96 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_SerialConnection_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_QuasiStatic_MultiPhase_SerialConnection.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection_res.mat does not exist to compare? outputFormat=mat