Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001795/0.001795, allocations: 92.27 kB / 20.96 MB, free: 3.445 MB / 18.57 MB " [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.002723/0.002723, allocations: 152.9 kB / 24.26 MB, free: 148 kB / 18.57 MB " [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 1.472/1.472, allocations: 177 MB / 204.4 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.327e-06/3.327e-06, allocations: 0 / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.073e-05/4.405e-05, allocations: 5.266 kB / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.004506/0.00455, allocations: 1.702 MB / 273.9 MB, free: 108 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.00562, allocations: 299 kB / 274.2 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.005728, allocations: 4 kB / 274.2 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.005903, allocations: 27.67 kB / 274.2 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.594e-05/0.005999, allocations: 19.8 kB / 274.2 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000547/0.006546, allocations: 131.7 kB / 274.3 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005302/0.007076, allocations: 275.4 kB / 274.6 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004011/0.007477, allocations: 154.1 kB / 274.8 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002603/0.007738, allocations: 135.7 kB / 274.9 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002046/0.007942, allocations: 71.77 kB / 275 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.973e-05/0.008002, allocations: 24 kB / 275 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.521e-05/0.008097, allocations: 28 kB / 275 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.008203, allocations: 67.8 kB / 275.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001356/0.008339, allocations: 63.81 kB / 275.1 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005057/0.008845, allocations: 267 kB / 275.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.008849, allocations: 0 / 275.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.008851, allocations: 0 / 275.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.008858, allocations: 0 / 275.4 MB, free: 14.57 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.0009919/0.009849, allocations: 425.2 kB / 275.8 MB, free: 14.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.009899, allocations: 11.98 kB / 275.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003683/0.01027, allocations: 52.78 kB / 275.9 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004083/0.01068, allocations: 177.5 kB / 276.1 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.052e-05/0.01072, allocations: 20.88 kB / 276.1 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.512e-05/0.01076, allocations: 32.36 kB / 276.1 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005006/0.01126, allocations: 261.9 kB / 276.4 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.01127, allocations: 192 / 276.4 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.106e-05/0.0113, allocations: 16.36 kB / 276.4 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.01131, allocations: 8.312 kB / 276.4 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003419/0.01166, allocations: 165.8 kB / 276.5 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001298/0.01295, allocations: 0.836 MB / 277.4 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003086/0.01326, allocations: 157.3 kB / 277.5 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001338/0.0134, allocations: 73.78 kB / 277.6 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.01342, allocations: 4 kB / 277.6 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002348/0.01366, allocations: 135.2 kB / 277.7 MB, free: 12.06 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.333e-06/0.01366, allocations: 0 / 277.7 MB, free: 12.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005652/0.01422, allocations: 241.2 kB / 278 MB, free: 11.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.492e-05/0.0143, allocations: 85.05 kB / 278.1 MB, free: 11.72 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001634/0.01446, allocations: 161.5 kB / 278.2 MB, free: 11.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.93e-05/0.0145, allocations: 33.7 kB / 278.3 MB, free: 11.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.01463, allocations: 144.9 kB / 278.4 MB, free: 11.37 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.711e-05/0.01471, allocations: 67.52 kB / 278.5 MB, free: 11.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.01483, allocations: 81.64 kB / 278.5 MB, free: 11.21 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.01502, allocations: 322.8 kB / 278.9 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.01515, allocations: 63.97 kB / 278.9 MB, free: 10.83 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001954/0.01534, allocations: 136.5 kB / 279.1 MB, free: 10.66 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003034/0.01565, allocations: 192.5 kB / 279.2 MB, free: 10.45 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.01565, allocations: 0 / 279.2 MB, free: 10.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004512/0.0161, allocations: 273.2 kB / 279.5 MB, free: 10.17 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.01612, allocations: 4 kB / 279.5 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.01613, allocations: 8.266 kB / 279.5 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.01615, allocations: 8 kB / 279.5 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.01629, allocations: 35.92 kB / 279.6 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.331e-05/0.01631, allocations: 7.938 kB / 279.6 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.01642, allocations: 27.78 kB / 279.6 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.01644, allocations: 12 kB / 279.6 MB, free: 10.07 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.0002831/0.01673, allocations: 157.8 kB / 279.8 MB, free: 9.906 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.848e-05/0.01676, allocations: 19.89 kB / 279.8 MB, free: 9.887 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.455e-05/0.01681, allocations: 20.92 kB / 279.8 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.707e-06/0.01682, allocations: 11.98 kB / 279.8 MB, free: 9.859 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.01682, allocations: 0 / 279.8 MB, free: 9.859 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.01682, allocations: 0 / 279.8 MB, free: 9.859 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007616/0.01759, allocations: 0.4908 MB / 280.3 MB, free: 9.328 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.01759, allocations: 3.938 kB / 280.3 MB, free: 9.324 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.713e-05/0.01767, allocations: 19.92 kB / 280.3 MB, free: 9.305 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.01767, allocations: 0 / 280.3 MB, free: 9.305 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.01768, allocations: 4 kB / 280.3 MB, free: 9.301 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.01769, allocations: 4 kB / 280.3 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.01769, allocations: 0 / 280.3 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003778/0.01807, allocations: 288.1 kB / 280.6 MB, free: 8.996 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.515e-05/0.01809, allocations: 23.84 kB / 280.6 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.467e-05/0.01812, allocations: 4 kB / 280.6 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.01822, allocations: 11.98 kB / 280.7 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.49e-05/0.01829, allocations: 19.97 kB / 280.7 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.01831, allocations: 7.938 kB / 280.7 MB, free: 8.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.967e-05/0.01839, allocations: 99.27 kB / 280.8 MB, free: 8.832 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01839, allocations: 0 / 280.8 MB, free: 8.832 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003239/0.01871, allocations: 47.89 kB / 280.8 MB, free: 8.785 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,transition1.enableFire,step.active,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.000136/0.01885, allocations: 107.2 kB / 280.9 MB, free: 8.668 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003334/0.01918, allocations: 171.6 kB / 281.1 MB, free: 8.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.01918, allocations: 0 / 281.1 MB, free: 8.5 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001342/0.01931, allocations: 71.91 kB / 281.2 MB, free: 8.43 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000306/0.01962, allocations: 24 kB / 281.2 MB, free: 8.406 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006526/0.02027, allocations: 342.4 kB / 281.5 MB, free: 8.043 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001412/0.02041, allocations: 125.8 kB / 281.6 MB, free: 7.902 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.886e-05/0.02049, allocations: 21.94 kB / 281.7 MB, free: 7.883 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.407e-05/0.02056, allocations: 24.5 kB / 281.7 MB, free: 7.855 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.02056, allocations: 4 kB / 281.7 MB, free: 7.852 MB / 266.7 MB Notification: Performance of Templates: time 0.005565/0.02612, allocations: 1.744 MB / 283.4 MB, free: 6.133 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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.291874020011164]