Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Electrical_MulitSensorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.MulitSensorTest,fileNamePrefix="ModelicaTest_3_2_3_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.002456/0.002456, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.944/1.944, allocations: 205.3 MB / 213.7 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008932/0.0008931, allocations: 94.56 kB / 261.7 MB, free: 1.676 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.2515/0.2515, allocations: 43.49 MB / 353.2 MB, free: 288 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.989e-05/2.009e-05, allocations: 0 / 418.3 MB, free: 28.47 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1407, allocations: 58.86 MB / 477.2 MB, free: 1.566 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4804/0.6211, allocations: 108 MB / 0.5715 GB, free: 3.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001985/0.6214, allocations: 69.75 kB / 0.5716 GB, free: 3.199 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2916/0.913, allocations: 130.4 MB / 0.6989 GB, free: 8.078 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.295e-06/0.9131, allocations: 3.938 kB / 0.6989 GB, free: 8.074 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002746/0.9134, allocations: 103.9 kB / 0.699 GB, free: 7.973 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: 1296 * Number of variables: 1296 Notification: Performance of Generate backend data structure: time 0.01625/0.9296, allocations: 4.618 MB / 0.7036 GB, free: 3.266 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.9297, allocations: 8.031 kB / 0.7036 GB, free: 3.258 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01397/0.9437, allocations: 2.421 MB / 0.7059 GB, free: 0.8281 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3251/1.269, allocations: 2.888 MB / 0.7087 GB, free: 107.7 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004418/1.269, allocations: 156.3 kB / 0.7089 GB, free: 107.7 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002322/1.272, allocations: 285.6 kB / 0.7092 GB, free: 107.7 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01482/1.286, allocations: 5.91 MB / 0.7149 GB, free: 107.7 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01795/1.304, allocations: 6.659 MB / 0.7214 GB, free: 107.2 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001645/1.305, allocations: 15.19 kB / 0.7215 GB, free: 107.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005773/1.305, allocations: 7.266 kB / 0.7215 GB, free: 107.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003898/1.306, allocations: 304.4 kB / 0.7218 GB, free: 107.2 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04215/1.348, allocations: 22.24 MB / 0.7435 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01022/1.358, allocations: 8.112 MB / 0.7514 GB, free: 100 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004483/1.363, allocations: 2.995 MB / 0.7543 GB, free: 99.98 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003531/1.363, allocations: 171.5 kB / 0.7545 GB, free: 99.88 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004117/1.367, allocations: 3.095 MB / 0.7575 GB, free: 98.9 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=417): time 5.941e-06/1.367, allocations: 0 / 0.7575 GB, free: 98.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=417): time 0.009424/1.377, allocations: 6.231 MB / 0.7636 GB, free: 96.66 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/1.377, allocations: 467.5 kB / 0.764 GB, free: 96.15 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001914/1.379, allocations: 1.36 MB / 0.7654 GB, free: 95.63 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002959/1.379, allocations: 40.61 kB / 0.7654 GB, free: 95.6 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00146/1.38, allocations: 1.658 MB / 0.767 GB, free: 94.56 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001033/1.382, allocations: 1.336 MB / 0.7683 GB, free: 93.52 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002117/1.382, allocations: 3.094 kB / 0.7683 GB, free: 93.52 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002285/1.382, allocations: 481.7 kB / 0.7688 GB, free: 93.14 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002673/1.385, allocations: 2.265 MB / 0.771 GB, free: 92.25 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003058/1.388, allocations: 3.081 MB / 0.774 GB, free: 90.46 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005474/1.393, allocations: 3.393 MB / 0.7773 GB, free: 89.32 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.963e-05/1.393, allocations: 13.66 kB / 0.7773 GB, free: 89.32 MB / 0.4948 GB Notification: Performance of matching and sorting (n=532) (initialization): time 0.01292/1.406, allocations: 7.049 MB / 0.7842 GB, free: 86.87 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 5.473e-05/1.406, allocations: 14.56 kB / 0.7842 GB, free: 86.87 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.455e-05/1.406, allocations: 20.53 kB / 0.7842 GB, free: 86.87 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002326/1.409, allocations: 1.388 MB / 0.7856 GB, free: 86.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003405/1.412, allocations: 0.785 MB / 0.7864 GB, free: 86.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004159/1.416, allocations: 4.644 MB / 0.7909 GB, free: 83.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003464/1.42, allocations: 428.3 kB / 0.7913 GB, free: 82.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000568/1.42, allocations: 166.2 kB / 0.7915 GB, free: 82.91 MB / 0.4948 GB 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.0009127/1.421, allocations: 239.2 kB / 0.7917 GB, free: 82.79 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009885/1.431, allocations: 6.231 MB / 0.7978 GB, free: 80.54 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007839/1.432, allocations: 258.4 kB / 0.798 GB, free: 80.41 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009333/1.441, allocations: 6.154 MB / 0.804 GB, free: 77.53 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-05/1.441, allocations: 86.28 kB / 0.8041 GB, free: 77.45 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.631e-05/1.442, allocations: 11.75 kB / 0.8041 GB, free: 77.45 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-05/1.442, allocations: 17.44 kB / 0.8042 GB, free: 77.45 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01904/1.461, allocations: 12.47 MB / 0.8163 GB, free: 67.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.63e-05/1.461, allocations: 0 / 0.8163 GB, free: 67.23 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002564/1.463, allocations: 0.6032 MB / 0.8169 GB, free: 66.76 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002267/1.466, allocations: 1.368 MB / 0.8183 GB, free: 65.61 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007506/1.466, allocations: 61.78 kB / 0.8183 GB, free: 65.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003905/1.47, allocations: 4.589 MB / 0.8228 GB, free: 61.17 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/1.47, allocations: 0 / 0.8228 GB, free: 61.17 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01513/1.485, allocations: 10.29 MB / 0.8328 GB, free: 52.21 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001388/1.487, allocations: 404.3 kB / 0.8332 GB, free: 51.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001174/1.488, allocations: 28.72 kB / 0.8333 GB, free: 51.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002618/1.491, allocations: 173.4 kB / 0.8334 GB, free: 51.69 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007904/1.492, allocations: 297.5 kB / 0.8337 GB, free: 51.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004692/1.492, allocations: 129.5 kB / 0.8338 GB, free: 51.39 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001796/1.494, allocations: 1.011 MB / 0.8348 GB, free: 50.51 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.813e-06/1.494, allocations: 0 / 0.8348 GB, free: 50.51 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004628/1.499, allocations: 1.148 MB / 0.8359 GB, free: 49.37 MB / 0.4948 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.01641/1.515, allocations: 11.44 MB / 0.8471 GB, free: 39.33 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00943/1.524, allocations: 5.641 MB / 0.8526 GB, free: 34.38 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.139e-05/1.525, allocations: 0 / 0.8526 GB, free: 34.38 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005138/1.53, allocations: 2.962 MB / 0.8555 GB, free: 31.74 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003505/1.533, allocations: 329.9 kB / 0.8558 GB, free: 31.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02279/1.556, allocations: 10.04 MB / 0.8656 GB, free: 22.91 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004183/1.56, allocations: 3.454 MB / 0.869 GB, free: 20.22 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004068/1.564, allocations: 0.956 MB / 0.8699 GB, free: 19.55 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003135/1.568, allocations: 1.666 MB / 0.8716 GB, free: 18.01 MB / 0.4948 GB Notification: Performance of SimCode: time 2.294e-06/1.568, allocations: 3.188 kB / 0.8716 GB, free: 18.01 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4347/2.002, allocations: 78.46 MB / 0.9482 GB, free: 95.26 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/2.002, allocations: 137.6 kB / 0.9483 GB, free: 95.06 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.101/6.104, allocations: 0 / 0.9483 GB, free: 95.06 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Electrical_MulitSensorTest_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Electrical_MulitSensorTest.fmu > ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Electrical.MulitSensorTest_res.mat does not exist to compare? outputFormat=mat