Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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.00177/0.00177, allocations: 96.25 kB / 20.96 MB, free: 3.465 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.002046/0.002046, allocations: 156.9 kB / 24.27 MB, free: 168 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.506/1.506, allocations: 177 MB / 204.4 MB, free: 5.625 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.883e-06/1.883e-06, allocations: 0 / 272.2 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.299e-05/3.487e-05, allocations: 2.312 kB / 272.2 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003455/0.00349, allocations: 1.666 MB / 273.8 MB, free: 176 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008702/0.00436, allocations: 303.1 kB / 274.1 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.004474, allocations: 7.938 kB / 274.1 MB, free: 15.87 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001508/0.004624, allocations: 15.75 kB / 274.1 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.23e-05/0.004687, allocations: 27.73 kB / 274.2 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00045/0.005137, allocations: 123.8 kB / 274.3 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004158/0.005552, allocations: 275.5 kB / 274.6 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003384/0.005891, allocations: 167.6 kB / 274.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002049/0.006096, allocations: 135.8 kB / 274.9 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001492/0.006245, allocations: 75.75 kB / 274.9 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.425e-05/0.006289, allocations: 24 kB / 275 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.219e-05/0.006351, allocations: 28 kB / 275 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.036e-05/0.006432, allocations: 59.81 kB / 275 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.006543, allocations: 71.8 kB / 275.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004164/0.006959, allocations: 263.1 kB / 275.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.275e-06/0.006961, allocations: 0 / 275.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.006962, allocations: 0 / 275.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.006966, allocations: 3.938 kB / 275.4 MB, free: 14.62 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.0006644/0.007631, allocations: 425.1 kB / 275.8 MB, free: 14.17 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.007664, allocations: 11.98 kB / 275.8 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002333/0.007897, allocations: 52.78 kB / 275.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003008/0.008198, allocations: 177.5 kB / 276 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.626e-05/0.008234, allocations: 24.88 kB / 276 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.152e-05/0.008276, allocations: 28.38 kB / 276.1 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004713/0.008747, allocations: 269.8 kB / 276.3 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.008755, allocations: 192 / 276.3 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.498e-05/0.00878, allocations: 12.38 kB / 276.3 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.128e-06/0.00879, allocations: 8.375 kB / 276.4 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003054/0.009095, allocations: 165.8 kB / 276.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001271/0.01037, allocations: 0.8476 MB / 277.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003129/0.01068, allocations: 157.4 kB / 277.5 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.0108, allocations: 73.62 kB / 277.6 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.01083, allocations: 4 kB / 277.6 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002372/0.01106, allocations: 147.2 kB / 277.7 MB, free: 12.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.112e-06/0.01106, allocations: 0 / 277.7 MB, free: 12.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005041/0.01157, allocations: 233.2 kB / 278 MB, free: 11.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.374e-05/0.01164, allocations: 85.11 kB / 278 MB, free: 11.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.01181, allocations: 149.7 kB / 278.2 MB, free: 11.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.39e-05/0.01185, allocations: 45.81 kB / 278.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.01197, allocations: 140.8 kB / 278.4 MB, free: 11.4 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.419e-05/0.01203, allocations: 63.48 kB / 278.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.01215, allocations: 73.69 kB / 278.5 MB, free: 11.26 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.01233, allocations: 330.8 kB / 278.8 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.01248, allocations: 63.97 kB / 278.9 MB, free: 10.86 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002104/0.01269, allocations: 140.5 kB / 279 MB, free: 10.7 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003095/0.013, allocations: 192.5 kB / 279.2 MB, free: 10.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.013, allocations: 0 / 279.2 MB, free: 10.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004675/0.01347, allocations: 273.2 kB / 279.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.01349, allocations: 8.281 kB / 279.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.01349, allocations: 4 kB / 279.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.01351, allocations: 4 kB / 279.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.01365, allocations: 35.92 kB / 279.5 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.01366, allocations: 4 kB / 279.5 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.01377, allocations: 27.83 kB / 279.6 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.01379, allocations: 12 kB / 279.6 MB, free: 10.11 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.0001825/0.01397, allocations: 165.6 kB / 279.7 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.376e-05/0.01402, allocations: 27.83 kB / 279.8 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.263e-05/0.01406, allocations: 20.94 kB / 279.8 MB, free: 9.895 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.01406, allocations: 4 kB / 279.8 MB, free: 9.891 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.01407, allocations: 0 / 279.8 MB, free: 9.891 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.01407, allocations: 4 kB / 279.8 MB, free: 9.887 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007585/0.01483, allocations: 498.6 kB / 280.3 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.01483, allocations: 0 / 280.3 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.035e-05/0.0149, allocations: 16 kB / 280.3 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.0149, allocations: 0 / 280.3 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.01492, allocations: 7.984 kB / 280.3 MB, free: 9.336 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-06/0.01492, allocations: 0 / 280.3 MB, free: 9.336 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.01492, allocations: 3.938 kB / 280.3 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000386/0.01531, allocations: 300.1 kB / 280.6 MB, free: 9.02 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.172e-05/0.01533, allocations: 15.84 kB / 280.6 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.69e-05/0.01536, allocations: 8 kB / 280.6 MB, free: 8.996 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.01547, allocations: 0 / 280.6 MB, free: 8.996 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.088e-05/0.01554, allocations: 23.95 kB / 280.7 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.01555, allocations: 8 kB / 280.7 MB, free: 8.965 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.78e-05/0.01563, allocations: 102.2 kB / 280.8 MB, free: 8.867 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01563, allocations: 0 / 280.8 MB, free: 8.867 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002941/0.01592, allocations: 47.89 kB / 280.8 MB, free: 8.82 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.000132/0.01605, allocations: 111.1 kB / 280.9 MB, free: 8.699 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003311/0.01639, allocations: 167.7 kB / 281.1 MB, free: 8.535 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01639, allocations: 0 / 281.1 MB, free: 8.535 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001273/0.01651, allocations: 71.84 kB / 281.2 MB, free: 8.465 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.01679, allocations: 27.98 kB / 281.2 MB, free: 8.438 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006228/0.01741, allocations: 350 kB / 281.5 MB, free: 8.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001417/0.01756, allocations: 129.9 kB / 281.6 MB, free: 7.926 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.202e-05/0.01763, allocations: 21.95 kB / 281.7 MB, free: 7.902 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.542e-05/0.01769, allocations: 28.48 kB / 281.7 MB, free: 7.871 MB / 266.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01769, allocations: 0 / 281.7 MB, free: 7.871 MB / 266.7 MB Notification: Performance of Templates: time 0.00541/0.0231, allocations: 1.765 MB / 283.5 MB, free: 6.129 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.377472188905813]