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.00208/0.00208, allocations: 88.31 kB / 20.96 MB, free: 3.477 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.002332/0.002332, allocations: 161.7 kB / 24.26 MB, free: 176 kB / 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 1.509/1.509, allocations: 177.2 MB / 204.6 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] 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.473e-06/1.473e-06, allocations: 0 / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.754e-05/2.902e-05, allocations: 2.312 kB / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003378/0.003407, allocations: 1.667 MB / 274 MB, free: 164 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008662/0.004273, allocations: 299.1 kB / 274.2 MB, free: 15.87 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.004399, allocations: 7.938 kB / 274.3 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.004557, allocations: 23.67 kB / 274.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.849e-05/0.004635, allocations: 23.8 kB / 274.3 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005147/0.00515, allocations: 123.8 kB / 274.4 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004133/0.005563, allocations: 279.4 kB / 274.7 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003549/0.005918, allocations: 167.6 kB / 274.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002306/0.006149, allocations: 135.8 kB / 275 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001546/0.006303, allocations: 75.75 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.888e-05/0.006352, allocations: 24 kB / 275.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.882e-05/0.006431, allocations: 28 kB / 275.1 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.526e-05/0.006516, allocations: 67.8 kB / 275.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.006633, allocations: 67.81 kB / 275.2 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004082/0.007042, allocations: 267 kB / 275.5 MB, free: 14.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.007046, allocations: 0 / 275.5 MB, free: 14.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.007047, allocations: 0 / 275.5 MB, free: 14.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.007057, allocations: 0 / 275.5 MB, free: 14.6 MB / 266.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.0008936/0.00795, allocations: 425.1 kB / 275.9 MB, free: 14.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.007996, allocations: 12.03 kB / 275.9 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003904/0.008387, allocations: 52.78 kB / 276 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005824/0.008969, allocations: 177.5 kB / 276.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.026e-05/0.009019, allocations: 24.86 kB / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.623e-05/0.009066, allocations: 24.38 kB / 276.2 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00054/0.009606, allocations: 273.8 kB / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.00962, allocations: 192 / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.099e-05/0.009651, allocations: 12.38 kB / 276.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.009661, allocations: 4.375 kB / 276.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003497/0.01001, allocations: 165.8 kB / 276.7 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001317/0.01133, allocations: 0.8399 MB / 277.5 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003265/0.01165, allocations: 156.5 kB / 277.6 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.01178, allocations: 65.7 kB / 277.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.01181, allocations: 7.938 kB / 277.7 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002405/0.01205, allocations: 141 kB / 277.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 3.567e-06/0.01205, allocations: 7.922 kB / 277.9 MB, free: 12.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005344/0.01259, allocations: 235.8 kB / 278.1 MB, free: 11.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.251e-05/0.01266, allocations: 81.11 kB / 278.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001677/0.01283, allocations: 157.7 kB / 278.3 MB, free: 11.58 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.649e-05/0.01287, allocations: 37.83 kB / 278.4 MB, free: 11.54 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.01299, allocations: 148.7 kB / 278.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.543e-05/0.01306, allocations: 63.48 kB / 278.6 MB, free: 11.32 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.01317, allocations: 77.69 kB / 278.6 MB, free: 11.24 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.01335, allocations: 322.8 kB / 279 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.0135, allocations: 67.91 kB / 279 MB, free: 10.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.01369, allocations: 132.5 kB / 279.2 MB, free: 10.69 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003009/0.01399, allocations: 200.8 kB / 279.4 MB, free: 10.46 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.01399, allocations: 0 / 279.4 MB, free: 10.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004697/0.01446, allocations: 277.2 kB / 279.6 MB, free: 10.19 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.01448, allocations: 8.281 kB / 279.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.01448, allocations: 4 kB / 279.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.01451, allocations: 4 kB / 279.6 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.01467, allocations: 27.92 kB / 279.7 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.01468, allocations: 4 kB / 279.7 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.0148, allocations: 31.84 kB / 279.7 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.01482, allocations: 12 kB / 279.7 MB, free: 10.1 MB / 266.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.0001811/0.015, allocations: 165.6 kB / 279.9 MB, free: 9.926 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.348e-05/0.01505, allocations: 27.84 kB / 279.9 MB, free: 9.898 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.719e-05/0.01509, allocations: 20.92 kB / 279.9 MB, free: 9.883 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.0151, allocations: 4 kB / 279.9 MB, free: 9.879 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.01511, allocations: 0 / 279.9 MB, free: 9.879 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.01511, allocations: 0 / 279.9 MB, free: 9.879 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007635/0.01587, allocations: 0.4892 MB / 280.4 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.01588, allocations: 3.984 kB / 280.4 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.191e-05/0.01595, allocations: 12 kB / 280.4 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.01595, allocations: 0 / 280.4 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.01597, allocations: 8 kB / 280.4 MB, free: 9.324 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.01598, allocations: 0 / 280.4 MB, free: 9.324 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.01598, allocations: 3.938 kB / 280.4 MB, free: 9.32 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003884/0.01637, allocations: 285.1 kB / 280.7 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.456e-05/0.01639, allocations: 19.84 kB / 280.7 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.13e-05/0.01642, allocations: 11.92 kB / 280.8 MB, free: 8.992 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.01654, allocations: 8 kB / 280.8 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.643e-05/0.01661, allocations: 15.97 kB / 280.8 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/0.01663, allocations: 11.98 kB / 280.8 MB, free: 8.957 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.183e-05/0.01671, allocations: 95.27 kB / 280.9 MB, free: 8.863 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01671, allocations: 0 / 280.9 MB, free: 8.863 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003169/0.01703, allocations: 51.89 kB / 280.9 MB, free: 8.812 MB / 266.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 0.0001736/0.0172, allocations: 115.1 kB / 281 MB, free: 8.688 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003494/0.01755, allocations: 166.9 kB / 281.2 MB, free: 8.527 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.01755, allocations: 0 / 281.2 MB, free: 8.527 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.0177, allocations: 79.7 kB / 281.3 MB, free: 8.449 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003018/0.018, allocations: 19.98 kB / 281.3 MB, free: 8.43 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007012/0.0187, allocations: 346.6 kB / 281.6 MB, free: 8.066 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001699/0.01887, allocations: 129.3 kB / 281.8 MB, free: 7.922 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.246e-05/0.01895, allocations: 21.95 kB / 281.8 MB, free: 7.898 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.937e-05/0.01903, allocations: 24.5 kB / 281.8 MB, free: 7.871 MB / 266.7 MB Notification: Performance of SimCode: time 8.02e-07/0.01903, allocations: 0 / 281.8 MB, free: 7.871 MB / 266.7 MB Notification: Performance of Templates: time 0.006077/0.02511, allocations: 1.787 MB / 283.6 MB, free: 6.125 MB / 266.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.301929467008449]