Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001598/0.001598, allocations: 114 kB / 18.45 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 189.2 kB / 21.4 MB, free: 1.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 225.6 MB / 249.8 MB, free: 3.719 MB / 190.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 55.91 kB / 366.8 MB, free: 364 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09325/0.09471, allocations: 52.14 MB / 418.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002893/0.0976, allocations: 1.674 MB / 420.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006354/0.09823, allocations: 291.1 kB / 420.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.263e-05/0.09832, allocations: 4 kB / 420.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.09844, allocations: 23.67 kB / 420.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.855e-05/0.09849, allocations: 23.8 kB / 420.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003894/0.09888, allocations: 123.8 kB / 421.1 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003325/0.09921, allocations: 267.5 kB / 421.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002827/0.0995, allocations: 159 kB / 421.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001095/0.09961, allocations: 103.6 kB / 421.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001388/0.09975, allocations: 95.55 kB / 421.7 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.147e-05/0.09979, allocations: 24 kB / 421.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.767e-05/0.09986, allocations: 35.98 kB / 421.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.951e-05/0.09993, allocations: 55.83 kB / 421.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001099/0.1, allocations: 107.5 kB / 421.9 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003144/0.1004, allocations: 258.9 kB / 422.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1004, allocations: 0 / 422.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.257e-06/0.1004, allocations: 4 kB / 422.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1004, allocations: 0 / 422.1 MB, free: 8.887 MB / 350.1 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.0007097/0.1011, allocations: 0.4905 MB / 422.6 MB, free: 8.344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.1011, allocations: 11.89 kB / 422.6 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.466e-05/0.1012, allocations: 24.8 kB / 422.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002934/0.1015, allocations: 240 kB / 422.9 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.553e-05/0.1015, allocations: 20.94 kB / 422.9 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.269e-05/0.1016, allocations: 36.3 kB / 423 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004609/0.102, allocations: 274.5 kB / 423.2 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.102, allocations: 192 / 423.2 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.539e-05/0.1021, allocations: 15.94 kB / 423.2 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.1021, allocations: 8 kB / 423.3 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003088/0.1024, allocations: 165.6 kB / 423.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.1036, allocations: 0.9674 MB / 424.4 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002893/0.1039, allocations: 157.3 kB / 424.5 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.104, allocations: 73.72 kB / 424.6 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.104, allocations: 4 kB / 424.6 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002201/0.1042, allocations: 141 kB / 424.7 MB, free: 6.066 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.262e-06/0.1042, allocations: 0 / 424.7 MB, free: 6.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004503/0.1047, allocations: 222.3 kB / 425 MB, free: 5.844 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.1047, allocations: 93.23 kB / 425.1 MB, free: 5.734 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001336/0.1049, allocations: 149.7 kB / 425.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.586e-05/0.1049, allocations: 37.7 kB / 425.2 MB, free: 5.535 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.105, allocations: 148.7 kB / 425.4 MB, free: 5.387 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.641e-05/0.1051, allocations: 59.55 kB / 425.4 MB, free: 5.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.95e-05/0.1052, allocations: 73.69 kB / 425.5 MB, free: 5.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.1053, allocations: 334.8 kB / 425.8 MB, free: 4.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.1054, allocations: 63.97 kB / 425.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000181/0.1056, allocations: 140.3 kB / 426 MB, free: 4.684 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002868/0.1059, allocations: 204.8 kB / 426.2 MB, free: 4.453 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1059, allocations: 3.938 kB / 426.2 MB, free: 4.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004111/0.1063, allocations: 257.3 kB / 426.5 MB, free: 4.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.1063, allocations: 8 kB / 426.5 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.1063, allocations: 0 / 426.5 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.1064, allocations: 4 kB / 426.5 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.1065, allocations: 35.92 kB / 426.5 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.1065, allocations: 4 kB / 426.5 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.1066, allocations: 32.05 kB / 426.6 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.172e-05/0.1066, allocations: 23.94 kB / 426.6 MB, free: 4.086 MB / 350.1 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.000152/0.1068, allocations: 153.7 kB / 426.8 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.983e-05/0.1068, allocations: 15.91 kB / 426.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003448/0.1072, allocations: 195 kB / 427 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1072, allocations: 4 kB / 427 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1072, allocations: 0 / 427 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.1072, allocations: 3.938 kB / 427 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007632/0.1079, allocations: 0.5987 MB / 427.6 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1079, allocations: 0 / 427.6 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.397e-05/0.108, allocations: 23.92 kB / 427.6 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.108, allocations: 4 kB / 427.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.108, allocations: 7.922 kB / 427.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.108, allocations: 4 kB / 427.6 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.108, allocations: 0 / 427.6 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000339/0.1084, allocations: 292.1 kB / 427.9 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.373e-05/0.1085, allocations: 92.95 kB / 428 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.574e-05/0.1085, allocations: 7.938 kB / 428 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.725e-05/0.1086, allocations: 11.98 kB / 428 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.228e-05/0.1086, allocations: 15.98 kB / 428 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.1086, allocations: 11.98 kB / 428 MB, free: 2.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.183e-05/0.1087, allocations: 97.38 kB / 428.1 MB, free: 2.449 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1087, allocations: 0 / 428.1 MB, free: 2.449 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003047/0.109, allocations: 55.89 kB / 428.2 MB, free: 2.395 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * 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 0.0001471/0.1092, allocations: 115.1 kB / 428.3 MB, free: 2.273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003337/0.1095, allocations: 172.7 kB / 428.5 MB, free: 2.105 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.1095, allocations: 0 / 428.5 MB, free: 2.105 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.1096, allocations: 79.78 kB / 428.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.1099, allocations: 30.62 kB / 428.6 MB, free: 2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006255/0.1105, allocations: 385.8 kB / 428.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/0.1109, allocations: 0.7363 MB / 429.7 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.409e-05/0.111, allocations: 23.42 kB / 429.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.111, allocations: 4 kB / 429.7 MB, free: 0.793 MB / 350.1 MB Notification: Performance of Templates: time 0.004528/0.1155, allocations: 2.461 MB / 432.2 MB, free: 14.33 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 6.527084654895589]