Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.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.MulitSensorTest,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_MulitSensorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.MulitSensorTest,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_MulitSensorTest",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.00211/0.00211, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.096/2.096, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001648/0.001648, allocations: 100.1 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3736/0.3736, allocations: 43.48 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.337e-05/2.35e-05, allocations: 224 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4082/0.4083, allocations: 58.85 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2039/0.6122, allocations: 108 MB / 0.5715 GB, free: 7.172 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.6126, allocations: 75.97 kB / 0.5715 GB, free: 7.098 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8001/1.413, allocations: 130.4 MB / 0.6989 GB, free: 101.9 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.194e-06/1.413, allocations: 0 / 0.6989 GB, free: 101.9 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0003184/1.413, allocations: 104.1 kB / 0.699 GB, free: 101.9 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1296 * Number of variables: 1296 Notification: Performance of Generate backend data structure: time 0.02143/1.434, allocations: 4.63 MB / 0.7035 GB, free: 98.88 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.875e-05/1.435, allocations: 6.875 kB / 0.7035 GB, free: 98.88 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02081/1.455, allocations: 2.425 MB / 0.7059 GB, free: 97.72 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009602/1.465, allocations: 2.884 MB / 0.7087 GB, free: 95.86 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004286/1.466, allocations: 155.2 kB / 0.7089 GB, free: 95.86 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002439/1.468, allocations: 291.8 kB / 0.7091 GB, free: 95.84 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0181/1.486, allocations: 5.916 MB / 0.7149 GB, free: 92.9 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02261/1.509, allocations: 6.653 MB / 0.7214 GB, free: 86.34 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002698/1.509, allocations: 11.91 kB / 0.7214 GB, free: 86.33 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00162/1.511, allocations: 15.98 kB / 0.7214 GB, free: 86.32 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004535/1.511, allocations: 308.3 kB / 0.7217 GB, free: 86.02 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06027/1.572, allocations: 22.23 MB / 0.7434 GB, free: 63.53 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0155/1.587, allocations: 8.119 MB / 0.7514 GB, free: 54.75 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006538/1.594, allocations: 2.998 MB / 0.7543 GB, free: 51.73 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000628/1.594, allocations: 172.3 kB / 0.7545 GB, free: 51.56 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007331/1.602, allocations: 3.094 MB / 0.7575 GB, free: 48.4 MB / 475.1 MB Notification: Performance of pre-optimization done (n=417): time 1.117e-05/1.602, allocations: 0 / 0.7575 GB, free: 48.4 MB / 475.1 MB Notification: Performance of matching and sorting (n=417): time 0.01817/1.62, allocations: 6.225 MB / 0.7636 GB, free: 42.12 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001802/1.62, allocations: 469.8 kB / 0.764 GB, free: 41.56 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00298/1.623, allocations: 1.359 MB / 0.7653 GB, free: 40.19 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009661/1.624, allocations: 41.62 kB / 0.7654 GB, free: 40.14 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001695/1.626, allocations: 1.636 MB / 0.767 GB, free: 38.49 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002134/1.628, allocations: 1.324 MB / 0.7683 GB, free: 37.14 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009385/1.629, allocations: 0 / 0.7683 GB, free: 37.14 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0004678/1.63, allocations: 487.7 kB / 0.7687 GB, free: 36.66 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005764/1.635, allocations: 2.268 MB / 0.771 GB, free: 34.38 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006554/1.642, allocations: 3.083 MB / 0.774 GB, free: 30.98 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01581/1.658, allocations: 3.399 MB / 0.7773 GB, free: 27.57 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.97e-05/1.658, allocations: 4 kB / 0.7773 GB, free: 27.57 MB / 475.1 MB Notification: Performance of matching and sorting (n=532) (initialization): time 0.03111/1.689, allocations: 6.953 MB / 0.7841 GB, free: 20.56 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.356e-05/1.689, allocations: 12 kB / 0.7841 GB, free: 20.55 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.77e-05/1.689, allocations: 24 kB / 0.7841 GB, free: 20.52 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00662/1.696, allocations: 1.392 MB / 0.7855 GB, free: 19.12 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009839/1.706, allocations: 0.7839 MB / 0.7862 GB, free: 18.34 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009747/1.716, allocations: 4.639 MB / 0.7908 GB, free: 13.54 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007069/1.723, allocations: 428.1 kB / 0.7912 GB, free: 13.11 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001463/1.724, allocations: 160 kB / 0.7913 GB, free: 12.96 MB / 475.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistorQM.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQM.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQM.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQM.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQM.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQM.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starQM.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQM.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQM.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQM.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQM.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQM.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 91 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.meanpowerA.y,meanpowerA.y,$whenCondition12,$whenCondition11,$whenCondition10,$PRE.rmsiA.mean.y,rmsiA.mean.y,$PRE.rmsvA.mean.y,rmsvA.mean.y,$PRE.meanpowerM[1].y,meanpowerM[1].y,$PRE.meanpowerM[2].y,meanpowerM[2].y,$PRE.meanpowerM[3].y,meanpowerM[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsiM[3].mean.y,rmsiM[3].mean.y,$PRE.rmsiM[2].mean.y,rmsiM[2].mean.y,$PRE.rmsiM[1].mean.y,rmsiM[1].mean.y,$PRE.rmsvM[3].mean.y,rmsvM[3].mean.y,$PRE.rmsvM[2].mean.y,rmsvM[2].mean.y,$PRE.rmsvM[1].mean.y,rmsvM[1].mean.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (421): * Single equations (assignments): 400 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 2 {6 9,6 45} Notification: Performance of prepare postOptimizeDAE: time 0.002287/1.727, allocations: 254.6 kB / 0.7916 GB, free: 12.71 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02831/1.755, allocations: 6.233 MB / 0.7977 GB, free: 6.418 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002053/1.757, allocations: 249 kB / 0.7979 GB, free: 6.172 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0297/1.787, allocations: 6.165 MB / 0.8039 GB, free: 15.94 MB / 491.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002637/1.787, allocations: 87.97 kB / 0.804 GB, free: 15.86 MB / 491.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-05/1.787, allocations: 0 / 0.804 GB, free: 15.86 MB / 491.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001454/1.788, allocations: 23.92 kB / 0.804 GB, free: 15.83 MB / 491.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06083/1.848, allocations: 12.47 MB / 0.8162 GB, free: 3.277 MB / 491.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.464e-05/1.849, allocations: 4 kB / 0.8162 GB, free: 3.273 MB / 491.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009055/1.858, allocations: 0.6086 MB / 0.8168 GB, free: 2.664 MB / 491.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008067/1.866, allocations: 1.349 MB / 0.8181 GB, free: 1.305 MB / 491.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001449/1.867, allocations: 59.94 kB / 0.8182 GB, free: 1.246 MB / 491.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01231/1.88, allocations: 4.602 MB / 0.8227 GB, free: 12.47 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.115e-05/1.88, allocations: 7.875 kB / 0.8227 GB, free: 12.46 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04639/1.926, allocations: 10.3 MB / 0.8327 GB, free: 2.023 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001712/1.928, allocations: 397.2 kB / 0.8331 GB, free: 1.613 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002066/1.93, allocations: 31.97 kB / 0.8331 GB, free: 1.582 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006211/1.936, allocations: 175.7 kB / 0.8333 GB, free: 1.41 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002248/1.939, allocations: 298.2 kB / 0.8336 GB, free: 1.117 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00117/1.94, allocations: 124 kB / 0.8337 GB, free: 0.9961 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.5043/2.444, allocations: 1.01 MB / 0.8347 GB, free: 127.5 MB / 0.4952 GB Notification: Performance of sort global known variables: time 1.964e-06/2.444, allocations: 0 / 0.8347 GB, free: 127.5 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.00924/2.453, allocations: 1.141 MB / 0.8358 GB, free: 127.5 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 18 (inductorQS.pin_p.reference.gamma,sineVoltageQM.plug_p.reference.gamma,inductorM.inductor[1].i,inductorM.inductor[2].i,inductorM.inductor[3].i,rmsvM[1].mean.x,rmsvM[2].mean.x,rmsvM[3].mean.x,rmsiM[1].mean.x,rmsiM[2].mean.x,rmsiM[3].mean.x,meanpowerM[1].x,meanpowerM[2].x,meanpowerM[3].x,inductorA.i,rmsvA.mean.x,rmsiA.mean.x,meanpowerA.x) * Number of discrete variables: 24 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rmsvM[1].mean.y,rmsvM[2].mean.y,rmsvM[3].mean.y,rmsiM[1].mean.y,rmsiM[2].mean.y,rmsiM[3].mean.y,meanpowerM[1].y,meanpowerM[2].y,meanpowerM[3].y,$whenCondition12,$whenCondition11,$whenCondition10,rmsvA.mean.y,rmsiA.mean.y,meanpowerA.y) * Number of discrete states: 12 (meanpowerA.x,rmsiA.mean.x,rmsvA.mean.x,rmsvM[1].mean.x,rmsvM[2].mean.x,rmsvM[3].mean.x,rmsiM[1].mean.x,rmsiM[2].mean.x,rmsiM[3].mean.x,meanpowerM[1].x,meanpowerM[2].x,meanpowerM[3].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (325): * Single equations (assignments): 292 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 12 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 2 {6 9,6 45} Notification: Performance of Backend phase and start with SimCode phase: time 0.04657/2.5, allocations: 11.45 MB / 0.847 GB, free: 125.8 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.02373/2.524, allocations: 5.627 MB / 0.8525 GB, free: 125.7 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.816e-05/2.524, allocations: 1.781 kB / 0.8525 GB, free: 125.7 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.01429/2.538, allocations: 3.129 MB / 0.8555 GB, free: 125.5 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006294/2.545, allocations: 325.7 kB / 0.8559 GB, free: 125.5 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04421/2.589, allocations: 9.869 MB / 0.8655 GB, free: 124 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00859/2.598, allocations: 3.363 MB / 0.8688 GB, free: 123.1 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006959/2.605, allocations: 1.696 MB / 0.8704 GB, free: 123.1 MB / 0.4952 GB Notification: Performance of SimCode: time 2.836e-06/2.605, allocations: 0 / 0.8704 GB, free: 123.1 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.41/7.015, allocations: 146.7 MB / 1.014 GB, free: 6.582 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_MulitSensorTest_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_MulitSensorTest.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.MulitSensorTest_res.mat does not exist to compare? outputFormat=mat