Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.MultiSensorTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33: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/ModelicaServices trunk/package.mo): time 0.0003508/0.0003508, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000617/0.000617, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.4254/0.4254, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.06862/0.06862, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: simulate(ModelicaTest.Electrical.MultiSensorTest,startTime=0,stopTime=0.1,tolerance=1e-06,numberOfIntervals=5006,outputFormat="mat",variableFilter="time|multiSensorA.i|multiSensorA.v|multiSensorA.power|multiSensorM.i.1.|multiSensorM.i.2.|multiSensorM.i.3.|multiSensorM.v.1.|multiSensorM.v.2.|multiSensorM.v.3.|multiSensorM.power.1.|multiSensorM.power.2.|multiSensorM.power.3.|multiSensorM.powerTotal|multiSensorQS.i.re|multiSensorQS.i.im|multiSensorQS.v.re|multiSensorQS.v.im|multiSensorQS.apparentPower.re|multiSensorQS.apparentPower.im|multiSensorQM.i.1..re|multiSensorQM.i.1..im|multiSensorQM.i.2..re|multiSensorQM.i.2..im|multiSensorQM.i.3..re|multiSensorQM.i.3..im|multiSensorQM.v.1..re|multiSensorQM.v.1..im|multiSensorQM.v.2..re|multiSensorQM.v.2..im|multiSensorQM.v.3..re|multiSensorQM.v.3..im|multiSensorQM.apparentPower.1..re|multiSensorQM.apparentPower.1..im|multiSensorQM.apparentPower.2..re|multiSensorQM.apparentPower.2..im|multiSensorQM.apparentPower.3..re|multiSensorQM.apparentPower.3..im|multiSensorQM.apparentPowerTotal.re|multiSensorQM.apparentPowerTotal.im|rmsvA.y|rmsiA.y|meanpowerA.y|rmsvM.1..y|rmsvM.2..y|rmsvM.3..y|rmsiM.1..y|rmsiM.2..y|rmsiM.3..y|meanpowerM.1..y|meanpowerM.2..y|meanpowerM.3..y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.MultiSensorTest",simflags="-alarm=480 -emit_protected -lv LOG_STATS") simulate(ModelicaTest.Electrical.MultiSensorTest,startTime=0,stopTime=0.1,tolerance=1e-06,numberOfIntervals=5006,outputFormat="mat",variableFilter="time|multiSensorA.i|multiSensorA.v|multiSensorA.power|multiSensorM.i.1.|multiSensorM.i.2.|multiSensorM.i.3.|multiSensorM.v.1.|multiSensorM.v.2.|multiSensorM.v.3.|multiSensorM.power.1.|multiSensorM.power.2.|multiSensorM.power.3.|multiSensorM.powerTotal|multiSensorQS.i.re|multiSensorQS.i.im|multiSensorQS.v.re|multiSensorQS.v.im|multiSensorQS.apparentPower.re|multiSensorQS.apparentPower.im|multiSensorQM.i.1..re|multiSensorQM.i.1..im|multiSensorQM.i.2..re|multiSensorQM.i.2..im|multiSensorQM.i.3..re|multiSensorQM.i.3..im|multiSensorQM.v.1..re|multiSensorQM.v.1..im|multiSensorQM.v.2..re|multiSensorQM.v.2..im|multiSensorQM.v.3..re|multiSensorQM.v.3..im|multiSensorQM.apparentPower.1..re|multiSensorQM.apparentPower.1..im|multiSensorQM.apparentPower.2..re|multiSensorQM.apparentPower.2..im|multiSensorQM.apparentPower.3..re|multiSensorQM.apparentPower.3..im|multiSensorQM.apparentPowerTotal.re|multiSensorQM.apparentPowerTotal.im|rmsvA.y|rmsiA.y|meanpowerA.y|rmsvM.1..y|rmsvM.2..y|rmsvM.3..y|rmsiM.1..y|rmsiM.2..y|rmsiM.3..y|meanpowerM.1..y|meanpowerM.2..y|meanpowerM.3..y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.MultiSensorTest",simflags="-alarm=480 -emit_protected -lv LOG_STATS") [Timeout 1140] "Notification: Performance of FrontEnd - loaded program: time 7.52e-07/7.52e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 2.415e-05/2.49e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.MultiSensorTest): time 0.02678/0.0268, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.01256/0.03936, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.002489/0.04185, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.01238/0.05423, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.006583/0.06081, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.005595/0.06641, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.009745/0.07615, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.02762/0.1038, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.01249/0.1163, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.009479/0.1257, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.001991/0.1277, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.004683/0.1324, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.005425/0.1378, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.007466/0.1453, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.0273/0.1726, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.003608/0.1762, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 5.57e-06/0.1762, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 0.0002933/0.1765, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1311 * Number of variables: 1311 Notification: Performance of Generate backend data structure: time 0.08122/0.2577, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0007826/0.2585, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09627/0.3548, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.02254/0.3773, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001061/0.3784, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.004122/0.3825, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.05444/0.4369, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 0.0004312/0.4374, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002924/0.4403, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009502/0.4412, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04559/0.4868, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09837/0.5852, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.02587/0.6111, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.007682/0.6188, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 0.0007113/0.6195, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01006/0.6295, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=288): time 0.00134/0.6309, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=288): time 0.02827/0.6591, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005719/0.6597, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01056/0.6703, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.001231/0.6715, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.003546/0.675, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.001949/0.677, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.004864/0.6819, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0002248/0.6821, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.008427/0.6905, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.01107/0.7016, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.01869/0.7203, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001121/0.7204, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=484) (initialization): time 0.02837/0.7488, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001724/0.7489, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001481/0.7491, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.003068/0.7521, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007038/0.7592, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02193/0.7811, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004535/0.7856, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001137/0.7868, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 177 * Number of states: 0 () * Number of discrete variables: 36 (meanpowerA.y_last,$PRE.meanpowerA.y_last,$whenCondition12,$whenCondition11,$whenCondition10,rmsiA.mean.y_last,$PRE.rmsiA.mean.y_last,rmsvA.mean.y_last,$PRE.rmsvA.mean.y_last,meanpowerM[1].y_last,$PRE.meanpowerM[1].y_last,meanpowerM[2].y_last,$PRE.meanpowerM[2].y_last,meanpowerM[3].y_last,$PRE.meanpowerM[3].y_last,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rmsiM[3].mean.y_last,$PRE.rmsiM[3].mean.y_last,rmsiM[2].mean.y_last,$PRE.rmsiM[2].mean.y_last,rmsiM[1].mean.y_last,$PRE.rmsiM[1].mean.y_last,rmsvM[3].mean.y_last,$PRE.rmsvM[3].mean.y_last,rmsvM[2].mean.y_last,$PRE.rmsvM[2].mean.y_last,rmsvM[1].mean.y_last,$PRE.rmsvM[1].mean.y_last) * 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009243/0.796, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002321/0.7983, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01793/0.8163, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.645e-05/0.8164, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-05/0.8164, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.597e-05/0.8165, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04383/0.8603, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.159e-05/0.8604, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004639/0.865, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 0.002793/0.8678, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009728/0.8688, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02136/0.8901, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.53e-05/0.8901, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02903/0.9192, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.005566/0.9247, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001716/0.9264, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002912/0.9294, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003083/0.9324, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007925/0.9332, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.006814/0.94, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 0.0001357/0.9402, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.01119/0.9514, allocations: 0 / 0, free: 0 / 0 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_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) * 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002025/0.9534, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.01876/0.9722, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 1.776e-05/0.9722, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.008885/0.9811, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01012/0.9912, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04803/1.039, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01097/1.05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.006101/1.056, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005787/1.062, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.003453/1.066, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.02407/1.09, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 1139] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.MultiSensorTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/MultiSensorTest/MultiSensorTest.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.MultiSensorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7109982339970884]