Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.00883/0.00883, allocations: 106 kB / 21.98 MB, free: 5.227 MB / 14.72 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.001909/0.001909, allocations: 216.4 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.52/1.52, allocations: 230.6 MB / 259 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002046/0.002046, allocations: 63.88 kB / 379.8 MB, free: 2.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2539, allocations: 53.36 MB / 433.1 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00332/0.2572, allocations: 1.729 MB / 434.9 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007484/0.2579, allocations: 303.1 kB / 435.2 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.258, allocations: 7.938 kB / 435.2 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001396/0.2582, allocations: 27.67 kB / 435.2 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.716e-05/0.2582, allocations: 15.81 kB / 435.2 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004082/0.2587, allocations: 127.8 kB / 435.3 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003673/0.259, allocations: 279.4 kB / 435.6 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000302/0.2593, allocations: 145.9 kB / 435.8 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.2595, allocations: 103.6 kB / 435.9 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001637/0.2596, allocations: 99.53 kB / 436 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.561e-05/0.2597, allocations: 24 kB / 436 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.966e-05/0.2597, allocations: 32 kB / 436 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.8e-05/0.2598, allocations: 59.83 kB / 436.1 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001143/0.2599, allocations: 99.52 kB / 436.2 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003364/0.2603, allocations: 260.2 kB / 436.4 MB, free: 3.707 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2603, allocations: 0 / 436.4 MB, free: 3.707 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2603, allocations: 3.938 kB / 436.4 MB, free: 3.703 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.2603, allocations: 0 / 436.4 MB, free: 3.703 MB / 334.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.0006833/0.2609, allocations: 421.2 kB / 436.8 MB, free: 3.262 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.261, allocations: 8.031 kB / 436.8 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002491/0.2612, allocations: 40.77 kB / 436.9 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003242/0.2616, allocations: 174.2 kB / 437.1 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.423e-05/0.2616, allocations: 24.88 kB / 437.1 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.026e-05/0.2616, allocations: 24.38 kB / 437.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004832/0.2621, allocations: 273.7 kB / 437.4 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.2621, allocations: 192 / 437.4 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.495e-05/0.2622, allocations: 7.938 kB / 437.4 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.2622, allocations: 12 kB / 437.4 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003263/0.2625, allocations: 165.6 kB / 437.6 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001244/0.2637, allocations: 0.921 MB / 438.5 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000312/0.264, allocations: 157.4 kB / 438.6 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.2642, allocations: 69.64 kB / 438.7 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.727e-05/0.2642, allocations: 4 kB / 438.7 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002266/0.2644, allocations: 144.9 kB / 438.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.2644, allocations: 3.938 kB / 438.8 MB, free: 1.105 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004751/0.2649, allocations: 225.8 kB / 439.1 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.33e-05/0.265, allocations: 85.11 kB / 439.1 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001437/0.2651, allocations: 149.7 kB / 439.3 MB, free: 0.625 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.534e-05/0.2652, allocations: 37.83 kB / 439.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.2653, allocations: 152.7 kB / 439.5 MB, free: 436 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.558e-05/0.2653, allocations: 59.52 kB / 439.5 MB, free: 376 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.2655, allocations: 81.47 kB / 439.6 MB, free: 288 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.2656, allocations: 326.8 kB / 439.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001247/0.2657, allocations: 63.97 kB / 440 MB, free: 15.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002107/0.266, allocations: 144.5 kB / 440.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002945/0.2663, allocations: 192.8 kB / 440.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.2663, allocations: 3.984 kB / 440.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004069/0.2667, allocations: 253.6 kB / 440.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.2667, allocations: 8 kB / 440.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.2667, allocations: 4 kB / 440.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/0.2667, allocations: 4 kB / 440.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.2669, allocations: 27.92 kB / 440.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.2669, allocations: 7.938 kB / 440.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.267, allocations: 23.84 kB / 440.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.348e-05/0.267, allocations: 16 kB / 440.7 MB, free: 15.15 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.0001748/0.2672, allocations: 161.7 kB / 440.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.996e-05/0.2672, allocations: 19.89 kB / 440.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.325e-05/0.2673, allocations: 20.92 kB / 440.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.2673, allocations: 4 kB / 440.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.2673, allocations: 0 / 440.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.2673, allocations: 4 kB / 440.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000785/0.2681, allocations: 0.5431 MB / 441.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2681, allocations: 0 / 441.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.065e-05/0.2681, allocations: 15.94 kB / 441.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.2681, allocations: 4 kB / 441.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.2682, allocations: 7.984 kB / 441.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.2682, allocations: 3.938 kB / 441.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2682, allocations: 0 / 441.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003252/0.2685, allocations: 272.1 kB / 441.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.905e-05/0.2685, allocations: 11.89 kB / 441.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.782e-05/0.2685, allocations: 11.92 kB / 441.7 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.993e-05/0.2686, allocations: 15.94 kB / 441.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.108e-05/0.2687, allocations: 23.91 kB / 441.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.2687, allocations: 11.98 kB / 441.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.464e-05/0.2688, allocations: 99.2 kB / 441.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2688, allocations: 0 / 441.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003133/0.2691, allocations: 55.84 kB / 441.9 MB, free: 13.79 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: 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.0001189/0.2692, allocations: 99.25 kB / 442 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003584/0.2696, allocations: 174.6 kB / 442.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2696, allocations: 0 / 442.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001327/0.2697, allocations: 75.75 kB / 442.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002906/0.27, allocations: 19.98 kB / 442.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006627/0.2707, allocations: 354.7 kB / 442.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003969/0.2711, allocations: 0.7365 MB / 443.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.169e-05/0.2711, allocations: 23.44 kB / 443.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of SimCode: time 9.51e-07/0.2711, allocations: 0 / 443.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of Templates: time 0.004486/0.2756, allocations: 2.265 MB / 445.7 MB, free: 9.988 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.178807340096682]