Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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.0008279/0.0008279, allocations: 87.62 kB / 21.43 MB, free: 3.129 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.003235/0.003235, allocations: 161.5 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.832/0.832, allocations: 177.1 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.589e-05/1.72e-05, allocations: 2.281 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002055/0.002072, allocations: 1.674 MB / 327.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004817/0.002554, allocations: 299.1 kB / 327.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.612e-05/0.00263, allocations: 7.938 kB / 327.8 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.002741, allocations: 19.73 kB / 327.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.384e-05/0.002774, allocations: 27.73 kB / 327.8 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003148/0.003089, allocations: 119.8 kB / 327.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002337/0.003323, allocations: 279.4 kB / 328.2 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000208/0.003531, allocations: 159.5 kB / 328.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001042/0.003635, allocations: 139.7 kB / 328.5 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.281e-05/0.003728, allocations: 75.75 kB / 328.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.822e-05/0.003756, allocations: 24 kB / 328.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.184e-05/0.003808, allocations: 31.94 kB / 328.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.736e-05/0.003855, allocations: 55.81 kB / 328.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.756e-05/0.003913, allocations: 71.81 kB / 328.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002286/0.004141, allocations: 267.1 kB / 329 MB, free: 12.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.004143, allocations: 0 / 329 MB, free: 12.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.004144, allocations: 0 / 329 MB, free: 12.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.004148, allocations: 0 / 329 MB, free: 12.22 MB / 298.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.0004643/0.004613, allocations: 425.2 kB / 329.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.004645, allocations: 12.02 kB / 329.4 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001552/0.0048, allocations: 36.78 kB / 329.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.004987, allocations: 181.3 kB / 329.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/0.005014, allocations: 20.88 kB / 329.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.404e-05/0.005038, allocations: 24.38 kB / 329.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002992/0.005337, allocations: 269.9 kB / 330 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.005348, allocations: 192 / 330 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.005364, allocations: 12.38 kB / 330 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.00537, allocations: 8.375 kB / 330 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001928/0.005563, allocations: 173.7 kB / 330.1 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006716/0.006235, allocations: 0.8249 MB / 331 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/0.006431, allocations: 156.2 kB / 331.1 MB, free: 9.969 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.267e-05/0.006504, allocations: 73.77 kB / 331.2 MB, free: 9.891 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/0.006519, allocations: 0 / 331.2 MB, free: 9.891 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001381/0.006657, allocations: 141.9 kB / 331.3 MB, free: 9.734 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.022e-06/0.006658, allocations: 4 kB / 331.3 MB, free: 9.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002947/0.006952, allocations: 227.8 kB / 331.6 MB, free: 9.504 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.006991, allocations: 89.03 kB / 331.6 MB, free: 9.398 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.071e-05/0.007082, allocations: 157.7 kB / 331.8 MB, free: 9.234 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.007101, allocations: 37.7 kB / 331.8 MB, free: 9.191 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.603e-05/0.007167, allocations: 140.8 kB / 332 MB, free: 9.047 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.444e-05/0.007202, allocations: 67.42 kB / 332 MB, free: 8.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.619e-05/0.007268, allocations: 85.45 kB / 332.1 MB, free: 8.891 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.181e-05/0.00734, allocations: 326.8 kB / 332.4 MB, free: 8.562 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.499e-05/0.007415, allocations: 63.97 kB / 332.5 MB, free: 8.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.969e-05/0.007514, allocations: 136.5 kB / 332.6 MB, free: 8.336 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001628/0.007677, allocations: 189.1 kB / 332.8 MB, free: 8.121 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.00768, allocations: 0 / 332.8 MB, free: 8.121 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004898/0.00817, allocations: 265.2 kB / 333.1 MB, free: 7.855 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.008182, allocations: 8 kB / 333.1 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.008187, allocations: 4 kB / 333.1 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.008201, allocations: 4 kB / 333.1 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.936e-05/0.00828, allocations: 27.92 kB / 333.1 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.008287, allocations: 7.984 kB / 333.1 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.212e-05/0.008339, allocations: 27.84 kB / 333.2 MB, free: 7.777 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.008351, allocations: 12.28 kB / 333.2 MB, free: 7.766 MB / 298.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: 32 ($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,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.000102/0.008453, allocations: 161.7 kB / 333.3 MB, free: 7.598 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.672e-05/0.00847, allocations: 19.84 kB / 333.4 MB, free: 7.578 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.103e-05/0.008501, allocations: 16.94 kB / 333.4 MB, free: 7.562 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.008504, allocations: 11.88 kB / 333.4 MB, free: 7.551 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.00851, allocations: 0 / 333.4 MB, free: 7.551 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.008517, allocations: 7.984 kB / 333.4 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000415/0.008932, allocations: 0.4958 MB / 333.9 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.008934, allocations: 0 / 333.9 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.514e-05/0.008969, allocations: 15.98 kB / 333.9 MB, free: 6.988 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.008975, allocations: 4 kB / 333.9 MB, free: 6.984 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.008985, allocations: 8 kB / 333.9 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.008986, allocations: 0 / 333.9 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.92e-07/0.008987, allocations: 0 / 333.9 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000179/0.009166, allocations: 280 kB / 334.2 MB, free: 6.684 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.719e-06/0.009176, allocations: 11.91 kB / 334.2 MB, free: 6.672 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.009192, allocations: 8 kB / 334.2 MB, free: 6.664 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.111e-05/0.009233, allocations: 7.984 kB / 334.2 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.173e-05/0.009285, allocations: 27.89 kB / 334.2 MB, free: 6.629 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.009292, allocations: 8 kB / 334.2 MB, free: 6.621 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.542e-05/0.009328, allocations: 102.2 kB / 334.3 MB, free: 6.523 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009328, allocations: 0 / 334.3 MB, free: 6.523 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001771/0.009505, allocations: 55.83 kB / 334.4 MB, free: 6.469 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 7.461e-05/0.009579, allocations: 111.1 kB / 334.5 MB, free: 6.352 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001951/0.009775, allocations: 163.7 kB / 334.7 MB, free: 6.191 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-06/0.009776, allocations: 0 / 334.7 MB, free: 6.191 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.338e-05/0.009849, allocations: 70.64 kB / 334.7 MB, free: 6.125 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000196/0.01004, allocations: 28.05 kB / 334.8 MB, free: 6.098 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003936/0.01044, allocations: 357.4 kB / 335.1 MB, free: 5.711 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.086e-05/0.01051, allocations: 121.6 kB / 335.2 MB, free: 5.574 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.235e-05/0.01055, allocations: 20.5 kB / 335.3 MB, free: 5.555 MB / 298.7 MB Notification: Performance of SimCode: time 4.1e-07/0.01055, allocations: 4 kB / 335.3 MB, free: 5.551 MB / 298.7 MB Notification: Performance of Templates: time 0.002432/0.01298, allocations: 2.297 MB / 337.6 MB, free: 3.25 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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: 4.144505714997649]