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.001372/0.001372, allocations: 110.4 kB / 21.17 MB, free: 0.7852 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.001595/0.001595, allocations: 217.4 kB / 24.47 MB, free: 4.359 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.577/1.577, allocations: 230.4 MB / 258.1 MB, free: 8.148 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.002268/0.002268, allocations: 71.83 kB / 378.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4168/0.4191, allocations: 53.33 MB / 432 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003374/0.4225, allocations: 1.722 MB / 433.7 MB, free: 5.699 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008398/0.4233, allocations: 295.1 kB / 434 MB, free: 5.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.4234, allocations: 8 kB / 434 MB, free: 5.402 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001784/0.4236, allocations: 31.61 kB / 434.1 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.133e-05/0.4237, allocations: 19.73 kB / 434.1 MB, free: 5.352 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004586/0.4241, allocations: 119.8 kB / 434.2 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003928/0.4245, allocations: 267.6 kB / 434.5 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003713/0.4249, allocations: 153.5 kB / 434.6 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/0.425, allocations: 91.69 kB / 434.7 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/0.4252, allocations: 103.5 kB / 434.8 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.787e-05/0.4252, allocations: 24 kB / 434.8 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.946e-05/0.4253, allocations: 35.98 kB / 434.9 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.715e-05/0.4254, allocations: 51.89 kB / 434.9 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001234/0.4255, allocations: 103.5 kB / 435 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003568/0.4259, allocations: 264.4 kB / 435.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.4259, allocations: 0 / 435.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4259, allocations: 0 / 435.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.4259, allocations: 0 / 435.3 MB, free: 4.16 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.0008586/0.4267, allocations: 0.4906 MB / 435.8 MB, free: 3.621 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.4268, allocations: 8.031 kB / 435.8 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003048/0.4271, allocations: 40.77 kB / 435.8 MB, free: 3.574 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003872/0.4275, allocations: 224.1 kB / 436 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.748e-05/0.4275, allocations: 20.94 kB / 436.1 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.961e-05/0.4276, allocations: 28.36 kB / 436.1 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005187/0.4281, allocations: 270.5 kB / 436.3 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.4281, allocations: 4.188 kB / 436.4 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.4281, allocations: 19.91 kB / 436.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.4282, allocations: 8 kB / 436.4 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003288/0.4285, allocations: 161.6 kB / 436.5 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.43, allocations: 0.9518 MB / 437.5 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000375/0.4304, allocations: 157.4 kB / 437.6 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.4306, allocations: 77.58 kB / 437.7 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.581e-05/0.4306, allocations: 11.97 kB / 437.7 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000277/0.4309, allocations: 125.1 kB / 437.9 MB, free: 1.375 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.4309, allocations: 0 / 437.9 MB, free: 1.375 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005864/0.4315, allocations: 228.8 kB / 438.1 MB, free: 1.148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.4316, allocations: 85.23 kB / 438.2 MB, free: 1.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.4318, allocations: 157.7 kB / 438.3 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.678e-05/0.4318, allocations: 33.7 kB / 438.3 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001669/0.432, allocations: 144.7 kB / 438.5 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.617e-05/0.432, allocations: 63.58 kB / 438.5 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/0.4322, allocations: 77.47 kB / 438.6 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002069/0.4324, allocations: 330.7 kB / 438.9 MB, free: 224 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001394/0.4325, allocations: 63.97 kB / 439 MB, free: 160 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002235/0.4327, allocations: 144.4 kB / 439.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003231/0.4331, allocations: 204.3 kB / 439.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.4331, allocations: 0 / 439.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004397/0.4335, allocations: 249.3 kB / 439.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/0.4335, allocations: 8 kB / 439.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.4335, allocations: 0 / 439.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.994e-05/0.4336, allocations: 4 kB / 439.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002159/0.4338, allocations: 39.86 kB / 439.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.345e-05/0.4338, allocations: 4 kB / 439.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.4339, allocations: 27.78 kB / 439.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.476e-05/0.4339, allocations: 16.28 kB / 439.7 MB, free: 15.41 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.0002244/0.4342, allocations: 161.7 kB / 439.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.822e-05/0.4342, allocations: 11.91 kB / 439.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.014e-05/0.4343, allocations: 24.83 kB / 439.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.4343, allocations: 4 kB / 439.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.4343, allocations: 0 / 439.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.4343, allocations: 0 / 439.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000918/0.4352, allocations: 0.583 MB / 440.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.4352, allocations: 0 / 440.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.139e-05/0.4353, allocations: 19.92 kB / 440.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.4353, allocations: 0 / 440.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.4353, allocations: 4 kB / 440.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.4353, allocations: 7.938 kB / 440.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.4353, allocations: 0 / 440.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003666/0.4357, allocations: 282.9 kB / 440.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.691e-05/0.4357, allocations: 89 kB / 440.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.12e-05/0.4358, allocations: 8 kB / 440.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.56e-05/0.4359, allocations: 11.92 kB / 440.9 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.883e-05/0.436, allocations: 15.98 kB / 440.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.228e-05/0.436, allocations: 11.98 kB / 440.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.513e-05/0.4361, allocations: 95.27 kB / 441 MB, free: 13.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4361, allocations: 0 / 441 MB, free: 13.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003096/0.4364, allocations: 55.84 kB / 441.1 MB, free: 13.93 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.0001556/0.4365, allocations: 107.2 kB / 441.2 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003618/0.4369, allocations: 168.1 kB / 441.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.4369, allocations: 0 / 441.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001384/0.437, allocations: 71.7 kB / 441.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.4374, allocations: 27.94 kB / 441.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007088/0.4381, allocations: 348.1 kB / 441.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004305/0.4385, allocations: 0.7287 MB / 442.5 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.628e-05/0.4386, allocations: 25.94 kB / 442.5 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.801e-05/0.4386, allocations: 19.44 kB / 442.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.4386, allocations: 4 kB / 442.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of Templates: time 0.00605/0.4447, allocations: 1.757 MB / 444.3 MB, free: 10.63 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 -s cvode -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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 4.977284256834537]