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.003021/0.00302, allocations: 189.5 kB / 16.4 MB, free: 5.625 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.375/2.375, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001229/0.001229, allocations: 94.78 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3109/0.3109, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004913/0.0004914, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1283, allocations: 58.86 MB / 490.3 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.MulitSensorTest): time 0.01651/0.1448, allocations: 9.192 MB / 499.5 MB, free: 12 kB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.009675/0.1546, allocations: 3.067 MB / 0.4908 GB, free: 12.93 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002355/0.157, allocations: 55.81 kB / 0.4909 GB, free: 12.88 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002559/0.1596, allocations: 489.2 kB / 0.4913 GB, free: 12.4 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005712/0.1654, allocations: 1.083 MB / 0.4924 GB, free: 11.31 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004361/0.1698, allocations: 0.8807 MB / 0.4932 GB, free: 10.43 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.007507/0.1773, allocations: 3.119 MB / 0.4963 GB, free: 7.305 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02072/0.1981, allocations: 7.406 MB / 0.5035 GB, free: 15.81 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004193/0.2023, allocations: 1.65 MB / 0.5051 GB, free: 14.16 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005168/0.2076, allocations: 2.011 MB / 0.5071 GB, free: 12.14 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001585/0.2092, allocations: 268 kB / 0.5073 GB, free: 11.88 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003168/0.2124, allocations: 419.8 kB / 0.5077 GB, free: 11.46 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002454/0.215, allocations: 1.024 MB / 0.5087 GB, free: 10.44 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0026/0.2176, allocations: 0.9368 MB / 0.5097 GB, free: 9.492 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01246/0.2301, allocations: 7.02 MB / 0.5165 GB, free: 2.453 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2302, allocations: 0 / 0.5165 GB, free: 2.453 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.737e-06/0.2302, allocations: 0 / 0.5165 GB, free: 2.453 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002919/0.2305, allocations: 0 / 0.5165 GB, free: 2.453 MB / 362.7 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.3848/0.6153, allocations: 5.131 MB / 0.5215 GB, free: 38.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.973e-05/0.6154, allocations: 7.312 kB / 0.5215 GB, free: 38.59 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004588/0.62, allocations: 0.6916 MB / 0.5222 GB, free: 38.22 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04936/0.6695, allocations: 3.516 MB / 0.5256 GB, free: 37.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008716/0.6782, allocations: 2.556 MB / 0.5281 GB, free: 36.39 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006221/0.6789, allocations: 364.6 kB / 0.5285 GB, free: 36.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002631/0.6815, allocations: 487.5 kB / 0.529 GB, free: 36.07 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02644/0.708, allocations: 7.336 MB / 0.5361 GB, free: 32.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002951/0.7084, allocations: 12.69 kB / 0.5361 GB, free: 32.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001558/0.71, allocations: 201.9 kB / 0.5363 GB, free: 31.95 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003601/0.7103, allocations: 269.6 kB / 0.5366 GB, free: 31.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01999/0.7303, allocations: 6.857 MB / 0.5433 GB, free: 27.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05364/0.784, allocations: 22.43 MB / 0.5652 GB, free: 4.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02029/0.8044, allocations: 11.82 MB / 0.5767 GB, free: 7.594 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004901/0.8049, allocations: 140.6 kB / 0.5769 GB, free: 7.449 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006116/0.8111, allocations: 2.045 MB / 0.5789 GB, free: 5.316 MB / 378.7 MB Notification: Performance of pre-optimization done (n=288): time 1.097e-05/0.8111, allocations: 0 / 0.5789 GB, free: 5.316 MB / 378.7 MB Notification: Performance of matching and sorting (n=288): time 0.01766/0.8288, allocations: 5.13 MB / 0.5839 GB, free: 104 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003655/0.8292, allocations: 0.5023 MB / 0.5844 GB, free: 15.49 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005231/0.8345, allocations: 2.033 MB / 0.5863 GB, free: 13.46 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007514/0.8353, allocations: 89.69 kB / 0.5864 GB, free: 13.36 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002534/0.8379, allocations: 1.955 MB / 0.5883 GB, free: 11.39 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001828/0.8397, allocations: 0.9649 MB / 0.5893 GB, free: 10.44 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006249/0.8404, allocations: 72 kB / 0.5893 GB, free: 10.37 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004415/0.8409, allocations: 470.9 kB / 0.5898 GB, free: 9.902 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005126/0.846, allocations: 1.608 MB / 0.5914 GB, free: 8.293 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006622/0.8527, allocations: 2.898 MB / 0.5942 GB, free: 4.836 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006315/0.8591, allocations: 2.195 MB / 0.5963 GB, free: 2.641 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.976e-05/0.8592, allocations: 12 kB / 0.5963 GB, free: 2.629 MB / 394.7 MB Notification: Performance of matching and sorting (n=484) (initialization): time 0.01526/0.8745, allocations: 4.935 MB / 0.6012 GB, free: 13.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.585e-05/0.8746, allocations: 26.66 kB / 0.6012 GB, free: 13.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.105e-05/0.8747, allocations: 36 kB / 0.6012 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001502/0.8762, allocations: 331.6 kB / 0.6015 GB, free: 13.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006305/0.8826, allocations: 0.8424 MB / 0.6024 GB, free: 12.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01042/0.893, allocations: 7.237 MB / 0.6094 GB, free: 4.664 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004689/0.8978, allocations: 493.1 kB / 0.6099 GB, free: 4.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009036/0.8987, allocations: 172.1 kB / 0.6101 GB, free: 4.012 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 177 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (464): * Single equations (assignments): 460 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005123/0.9039, allocations: 1.701 MB / 0.6117 GB, free: 2.297 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008834/0.9048, allocations: 241.1 kB / 0.612 GB, free: 2.059 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009409/0.9142, allocations: 3.059 MB / 0.6149 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.339e-05/0.9143, allocations: 32 kB / 0.615 GB, free: 14.94 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.413e-05/0.9143, allocations: 8 kB / 0.615 GB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.884e-05/0.9144, allocations: 11.95 kB / 0.615 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02525/0.9397, allocations: 8.649 MB / 0.6234 GB, free: 6.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.261e-05/0.9398, allocations: 3.984 kB / 0.6234 GB, free: 6.227 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004621/0.9444, allocations: 0.5112 MB / 0.6239 GB, free: 5.715 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001349/0.9458, allocations: 287.2 kB / 0.6242 GB, free: 5.422 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006426/0.9465, allocations: 73.56 kB / 0.6243 GB, free: 5.352 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01017/0.9567, allocations: 7.143 MB / 0.6313 GB, free: 13.67 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.121e-05/0.9567, allocations: 15.92 kB / 0.6313 GB, free: 13.66 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01677/0.9735, allocations: 5.992 MB / 0.6371 GB, free: 7.488 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002626/0.9762, allocations: 0.6614 MB / 0.6378 GB, free: 6.805 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009699/0.9772, allocations: 79.97 kB / 0.6379 GB, free: 6.727 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003114/0.9803, allocations: 175.8 kB / 0.638 GB, free: 6.555 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008293/0.9812, allocations: 206.2 kB / 0.6382 GB, free: 6.352 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003113/0.9815, allocations: 91.97 kB / 0.6383 GB, free: 6.262 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003496/0.9851, allocations: 1.367 MB / 0.6396 GB, free: 4.902 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.635e-06/0.9851, allocations: 0 / 0.6396 GB, free: 4.902 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006439/0.9916, allocations: 1.25 MB / 0.6409 GB, free: 3.648 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 18 (sineVoltageQS.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (289): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * 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: 4 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0182/1.01, allocations: 7.413 MB / 0.6481 GB, free: 12.07 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01217/1.022, allocations: 4.354 MB / 0.6524 GB, free: 7.668 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.581e-05/1.022, allocations: 4 kB / 0.6524 GB, free: 7.664 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006617/1.029, allocations: 2.5 MB / 0.6548 GB, free: 5.117 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003931/1.033, allocations: 413.4 kB / 0.6552 GB, free: 4.715 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04582/1.079, allocations: 40.08 MB / 0.6943 GB, free: 11.77 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005741/1.084, allocations: 3.317 MB / 0.6976 GB, free: 8.426 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004623/1.089, allocations: 1.663 MB / 0.6992 GB, free: 6.762 MB / 0.4949 GB Notification: Performance of SimCode: time 1.754e-06/1.089, allocations: 0 / 0.6992 GB, free: 6.762 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.348/5.437, allocations: 163.4 MB / 0.8588 GB, free: 28.58 MB / 0.4949 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