Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.MultiSensorTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.MultiSensorTest,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_MultiSensorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.MultiSensorTest,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_MultiSensorTest",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00095/0.00095, allocations: 174.8 kB / 8.518 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.166/1.166, allocations: 221.4 MB / 230.3 MB, free: 7.734 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009267/0.0009267, allocations: 91.22 kB / 281.2 MB, free: 5.492 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1644/0.1644, allocations: 44.14 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1955/0.36, allocations: 68.02 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.4681, allocations: 61.92 MB / 0.4942 GB, free: 1.516 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.294/0.7621, allocations: 109.7 MB / 0.6013 GB, free: 2.969 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001744/0.7623, allocations: 71.44 kB / 0.6014 GB, free: 2.902 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: 1308 * Number of variables: 1308 Notification: Performance of Generate backend data structure: time 0.4614/1.224, allocations: 136.6 MB / 0.7348 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/1.224, allocations: 11.19 kB / 0.7348 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01351/1.237, allocations: 2.298 MB / 0.737 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006515/1.244, allocations: 2.988 MB / 0.7399 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002601/1.244, allocations: 154.1 kB / 0.7401 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001511/1.246, allocations: 290.3 kB / 0.7404 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01036/1.256, allocations: 5.88 MB / 0.7461 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01334/1.269, allocations: 6.586 MB / 0.7525 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001951/1.27, allocations: 16.94 kB / 0.7526 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001186/1.271, allocations: 3.406 kB / 0.7526 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002986/1.271, allocations: 356.3 kB / 0.7529 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03365/1.305, allocations: 21.86 MB / 0.7742 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004381/1.309, allocations: 3.704 MB / 0.7779 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001834/1.311, allocations: 1.669 MB / 0.7795 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000224/1.311, allocations: 150.8 kB / 0.7796 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002771/1.314, allocations: 2.024 MB / 0.7816 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=291): time 9.818e-06/1.314, allocations: 0 / 0.7816 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=291): time 0.006756/1.321, allocations: 3.551 MB / 0.7851 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/1.321, allocations: 0.5043 MB / 0.7856 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003236/1.324, allocations: 1.764 MB / 0.7873 GB, free: 104 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002373/1.324, allocations: 36.72 kB / 0.7873 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0013/1.326, allocations: 1.785 MB / 0.7891 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006372/1.326, allocations: 0.9432 MB / 0.79 GB, free: 101.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002409/1.327, allocations: 4.688 kB / 0.79 GB, free: 101.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001952/1.327, allocations: 465.8 kB / 0.7904 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002239/1.329, allocations: 1.697 MB / 0.7921 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002935/1.332, allocations: 2.979 MB / 0.795 GB, free: 98.73 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003934/1.336, allocations: 2.408 MB / 0.7974 GB, free: 97.93 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.283e-05/1.336, allocations: 11.31 kB / 0.7974 GB, free: 97.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=490) (initialization): time 0.008861/1.345, allocations: 5.084 MB / 0.8023 GB, free: 96.26 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/1.345, allocations: 4.719 kB / 0.8023 GB, free: 96.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.929e-05/1.345, allocations: 39.81 kB / 0.8024 GB, free: 96.26 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008903/1.346, allocations: 336.5 kB / 0.8027 GB, free: 96.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003228/1.349, allocations: 0.8429 MB / 0.8035 GB, free: 95.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004471/1.354, allocations: 6.802 MB / 0.8102 GB, free: 88.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002961/1.357, allocations: 409.7 kB / 0.8106 GB, free: 88.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004597/1.357, allocations: 183.7 kB / 0.8107 GB, free: 88.31 MB / 0.5105 GB 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_last,meanpowerA.y_last,$whenCondition12,$whenCondition11,$whenCondition10,$PRE.rmsiA.mean.y_last,rmsiA.mean.y_last,$PRE.rmsvA.mean.y_last,rmsvA.mean.y_last,$PRE.meanpowerM[1].y_last,meanpowerM[1].y_last,$PRE.meanpowerM[2].y_last,meanpowerM[2].y_last,$PRE.meanpowerM[3].y_last,meanpowerM[3].y_last,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsiM[3].mean.y_last,rmsiM[3].mean.y_last,$PRE.rmsiM[2].mean.y_last,rmsiM[2].mean.y_last,$PRE.rmsiM[1].mean.y_last,rmsiM[1].mean.y_last,$PRE.rmsvM[3].mean.y_last,rmsvM[3].mean.y_last,$PRE.rmsvM[2].mean.y_last,rmsvM[2].mean.y_last,$PRE.rmsvM[1].mean.y_last,rmsvM[1].mean.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (470): * Single equations (assignments): 466 * 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.0006607/1.358, allocations: 243.4 kB / 0.811 GB, free: 88.07 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005275/1.358, allocations: 240.7 kB / 0.8112 GB, free: 87.84 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005569/1.364, allocations: 3.415 MB / 0.8145 GB, free: 85 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.29e-05/1.364, allocations: 36 kB / 0.8146 GB, free: 84.97 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.24e-05/1.364, allocations: 7.938 kB / 0.8146 GB, free: 84.96 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.959e-05/1.364, allocations: 21.3 kB / 0.8146 GB, free: 84.96 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01174/1.376, allocations: 8.197 MB / 0.8226 GB, free: 78.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.176e-05/1.376, allocations: 0 / 0.8226 GB, free: 78.23 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002371/1.378, allocations: 0.5172 MB / 0.8231 GB, free: 77.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006914/1.379, allocations: 278.4 kB / 0.8234 GB, free: 77.55 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002436/1.379, allocations: 43.53 kB / 0.8234 GB, free: 77.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004252/1.383, allocations: 6.743 MB / 0.83 GB, free: 70.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/1.383, allocations: 7.938 kB / 0.83 GB, free: 70.7 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007555/1.391, allocations: 6.368 MB / 0.8362 GB, free: 64.96 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01012/1.401, allocations: 9.042 MB / 0.8451 GB, free: 56.84 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000902/1.402, allocations: 363.2 kB / 0.8454 GB, free: 56.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000714/1.403, allocations: 35.88 kB / 0.8454 GB, free: 56.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002/1.405, allocations: 126.1 kB / 0.8456 GB, free: 56.36 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003461/1.405, allocations: 169.6 kB / 0.8457 GB, free: 56.26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002073/1.405, allocations: 93.98 kB / 0.8458 GB, free: 56.18 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.00189/1.407, allocations: 1.289 MB / 0.8471 GB, free: 55.06 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004197/1.412, allocations: 1.168 MB / 0.8482 GB, free: 53.89 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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_last,rmsvM[2].mean.y_last,rmsvM[3].mean.y_last,rmsiM[1].mean.y_last,rmsiM[2].mean.y_last,rmsiM[3].mean.y_last,meanpowerM[1].y_last,meanpowerM[2].y_last,meanpowerM[3].y_last,$whenCondition12,$whenCondition11,$whenCondition10,rmsvA.mean.y_last,rmsiA.mean.y_last,meanpowerA.y_last) * 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 (292): * Single equations (assignments): 276 * 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.0004761/1.412, allocations: 235.3 kB / 0.8484 GB, free: 53.68 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005441/1.418, allocations: 4.411 MB / 0.8527 GB, free: 49.66 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/1.418, allocations: 4 kB / 0.8527 GB, free: 49.65 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002595/1.42, allocations: 2.246 MB / 0.8549 GB, free: 47.58 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002054/1.422, allocations: 330.4 kB / 0.8553 GB, free: 47.33 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01585/1.438, allocations: 7.681 MB / 0.8628 GB, free: 40.57 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005093/1.443, allocations: 3.699 MB / 0.8664 GB, free: 37.66 MB / 0.5105 GB Notification: Performance of SimCode: time 5.71e-07/1.443, allocations: 3.938 kB / 0.8664 GB, free: 37.66 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.MultiSensorTest.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.MultiSensorTest.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.MultiSensorTest.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.MultiSensorTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.MultiSensorTest_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_MultiSensorTest_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_MultiSensorTest.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.MultiSensorTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Electrical.MultiSensorTest_res.mat does not exist to compare? outputFormat=mat