Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 85.95 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 165 kB / 25.6 MB, free: 8.91 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.157/1.157, allocations: 158.6 MB / 187.5 MB, free: 2.77 MB / 170.7 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.365e-06/2.365e-06, allocations: 0 / 251.4 MB, free: 7.277 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.049e-05/3.285e-05, allocations: 2.312 kB / 251.4 MB, free: 7.273 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002598/0.002631, allocations: 1.696 MB / 253.1 MB, free: 5.562 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005889/0.00322, allocations: 271.1 kB / 253.4 MB, free: 5.297 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.003333, allocations: 7.938 kB / 253.4 MB, free: 5.289 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.003471, allocations: 27.67 kB / 253.4 MB, free: 5.262 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.228e-05/0.003543, allocations: 19.73 kB / 253.5 MB, free: 5.242 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004978/0.004041, allocations: 123.8 kB / 253.6 MB, free: 5.121 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003345/0.004376, allocations: 275.5 kB / 253.8 MB, free: 4.852 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002712/0.004647, allocations: 158.1 kB / 254 MB, free: 4.699 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001325/0.004779, allocations: 131.7 kB / 254.1 MB, free: 4.57 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001202/0.0049, allocations: 71.77 kB / 254.2 MB, free: 4.5 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.456e-05/0.004934, allocations: 24 kB / 254.2 MB, free: 4.477 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.84e-05/0.005012, allocations: 31.98 kB / 254.3 MB, free: 4.445 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.262e-05/0.005065, allocations: 59.75 kB / 254.3 MB, free: 4.387 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.057e-05/0.005136, allocations: 75.8 kB / 254.4 MB, free: 4.312 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002476/0.005383, allocations: 175.3 kB / 254.6 MB, free: 4.141 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.005386, allocations: 0 / 254.6 MB, free: 4.141 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.005387, allocations: 0 / 254.6 MB, free: 4.141 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.005391, allocations: 0 / 254.6 MB, free: 4.141 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0005691/0.00596, allocations: 0.5146 MB / 255.1 MB, free: 3.582 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.006011, allocations: 11.98 kB / 255.1 MB, free: 3.57 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.61e-05/0.006087, allocations: 48.78 kB / 255.1 MB, free: 3.523 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002219/0.006309, allocations: 180.2 kB / 255.3 MB, free: 3.32 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.181e-05/0.006341, allocations: 20.88 kB / 255.3 MB, free: 3.301 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.016e-05/0.006371, allocations: 28.38 kB / 255.4 MB, free: 3.273 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002956/0.006666, allocations: 232.7 kB / 255.6 MB, free: 3.016 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.006678, allocations: 192 / 255.6 MB, free: 3.016 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.986e-05/0.006698, allocations: 12.38 kB / 255.6 MB, free: 3.004 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.006706, allocations: 8.375 kB / 255.6 MB, free: 2.996 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001287/0.006835, allocations: 87.3 kB / 255.7 MB, free: 2.914 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009212/0.007756, allocations: 1.042 MB / 256.7 MB, free: 1.816 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001723/0.007929, allocations: 111.3 kB / 256.8 MB, free: 1.695 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.282e-05/0.007971, allocations: 47.66 kB / 256.9 MB, free: 1.645 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.007991, allocations: 4 kB / 256.9 MB, free: 1.641 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001204/0.008112, allocations: 96.8 kB / 257 MB, free: 1.531 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.008113, allocations: 0 / 257 MB, free: 1.531 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002549/0.008368, allocations: 177.9 kB / 257.2 MB, free: 1.352 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.008408, allocations: 55.41 kB / 257.2 MB, free: 1.285 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.008537, allocations: 229.3 kB / 257.4 MB, free: 1.047 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.008561, allocations: 37.69 kB / 257.5 MB, free: 1.004 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.207e-05/0.008653, allocations: 187.5 kB / 257.7 MB, free: 0.8164 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.493e-05/0.008698, allocations: 59.52 kB / 257.7 MB, free: 0.7578 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.56e-05/0.008793, allocations: 91.59 kB / 257.8 MB, free: 0.6562 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.008939, allocations: 0.4962 MB / 258.3 MB, free: 152 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.274e-05/0.008991, allocations: 32.62 kB / 258.3 MB, free: 120 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001155/0.009107, allocations: 138.1 kB / 258.5 MB, free: 15.94 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001571/0.009264, allocations: 172.6 kB / 258.6 MB, free: 15.73 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.009267, allocations: 0 / 258.6 MB, free: 15.73 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002343/0.009501, allocations: 213.3 kB / 258.8 MB, free: 15.52 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.009518, allocations: 8 kB / 258.9 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.009524, allocations: 0 / 258.9 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.009542, allocations: 7.938 kB / 258.9 MB, free: 15.5 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.009653, allocations: 35.92 kB / 258.9 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.009663, allocations: 11.92 kB / 258.9 MB, free: 15.45 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.757e-05/0.00973, allocations: 27.78 kB / 258.9 MB, free: 15.43 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.536e-05/0.009756, allocations: 12 kB / 258.9 MB, free: 15.41 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001451/0.009901, allocations: 187.4 kB / 259.1 MB, free: 15.22 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.339e-05/0.009934, allocations: 35.81 kB / 259.2 MB, free: 15.18 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001972/0.01013, allocations: 158.4 kB / 259.3 MB, free: 15.03 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.01014, allocations: 4 kB / 259.3 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.235e-06/0.01014, allocations: 0 / 259.3 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.01014, allocations: 0 / 259.3 MB, free: 15.02 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004649/0.01061, allocations: 0.4891 MB / 259.8 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.01061, allocations: 0 / 259.8 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.968e-05/0.01066, allocations: 19.92 kB / 259.8 MB, free: 14.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.01066, allocations: 0 / 259.8 MB, free: 14.48 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.01067, allocations: 8 kB / 259.8 MB, free: 14.47 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.748e-06/0.01068, allocations: 4 kB / 259.8 MB, free: 14.46 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.01068, allocations: 0 / 259.8 MB, free: 14.46 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002005/0.01088, allocations: 303.6 kB / 260.1 MB, free: 14.15 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.669e-05/0.0109, allocations: 19.83 kB / 260.2 MB, free: 14.13 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.01092, allocations: 4 kB / 260.2 MB, free: 14.12 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.013e-05/0.01097, allocations: 11.98 kB / 260.2 MB, free: 14.11 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.369e-05/0.01102, allocations: 19.97 kB / 260.2 MB, free: 14.09 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.01103, allocations: 4 kB / 260.2 MB, free: 14.09 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.103e-05/0.01108, allocations: 131.2 kB / 260.3 MB, free: 13.96 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01108, allocations: 4 kB / 260.3 MB, free: 13.96 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002263/0.01131, allocations: 59.83 kB / 260.4 MB, free: 13.9 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001411/0.01145, allocations: 107.1 kB / 260.5 MB, free: 13.78 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001915/0.01164, allocations: 136.7 kB / 260.6 MB, free: 13.64 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.01164, allocations: 0 / 260.6 MB, free: 13.64 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.155e-05/0.01171, allocations: 75.5 kB / 260.7 MB, free: 13.57 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000218/0.01193, allocations: 28.44 kB / 260.7 MB, free: 13.54 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004743/0.01241, allocations: 327.2 kB / 261 MB, free: 13.19 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.611e-05/0.01246, allocations: 80.33 kB / 261.1 MB, free: 13.09 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.58e-05/0.01253, allocations: 25.94 kB / 261.1 MB, free: 13.07 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.344e-05/0.01262, allocations: 106.1 kB / 261.3 MB, free: 12.96 MB / 250.7 MB Notification: Performance of SimCode: time 8.02e-07/0.01262, allocations: 7.938 kB / 261.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of Templates: time 0.004503/0.01712, allocations: 2.118 MB / 263.4 MB, free: 10.86 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0208074650727212]