Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.0008314/0.0008314, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0009151/0.0009151, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 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 0.8849/0.8849, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.653e-05/1.793e-05, allocations: 2.281 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001838/0.001856, allocations: 1.482 MB / 326 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005048/0.002361, allocations: 287.2 kB / 326.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.388e-05/0.002435, allocations: 3.938 kB / 326.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000124/0.002559, allocations: 23.73 kB / 326.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.187e-05/0.002591, allocations: 15.81 kB / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003569/0.002948, allocations: 119.7 kB / 326.5 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000244/0.003192, allocations: 271.4 kB / 326.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000218/0.00341, allocations: 137.9 kB / 326.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.003521, allocations: 135.7 kB / 327 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.727e-05/0.003618, allocations: 71.77 kB / 327.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.864e-05/0.003647, allocations: 24 kB / 327.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.436e-05/0.003701, allocations: 24 kB / 327.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.585e-05/0.003747, allocations: 51.83 kB / 327.2 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.079e-05/0.003808, allocations: 71.8 kB / 327.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002223/0.00403, allocations: 247.2 kB / 327.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.004033, allocations: 0 / 327.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.004034, allocations: 4 kB / 327.5 MB, free: 13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.00404, allocations: 4 kB / 327.5 MB, free: 13 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0004652/0.004505, allocations: 409.1 kB / 327.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.00454, allocations: 15.97 kB / 327.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.589e-05/0.004586, allocations: 58.72 kB / 327.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001571/0.004743, allocations: 28.83 kB / 328 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002105/0.004953, allocations: 173.4 kB / 328.1 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.926e-05/0.004982, allocations: 20.88 kB / 328.2 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.391e-05/0.005006, allocations: 24.38 kB / 328.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002918/0.005298, allocations: 243.3 kB / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.005308, allocations: 4.188 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.654e-05/0.005325, allocations: 8.375 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.005332, allocations: 8.125 kB / 328.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001981/0.00553, allocations: 157.9 kB / 328.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006838/0.006214, allocations: 0.6046 MB / 329.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002123/0.006426, allocations: 162.7 kB / 329.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.239e-05/0.006499, allocations: 64.83 kB / 329.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.744e-05/0.006516, allocations: 4 kB / 329.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001424/0.006659, allocations: 128.2 kB / 329.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.00666, allocations: 0 / 329.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002984/0.006958, allocations: 223.8 kB / 329.8 MB, free: 10.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.411e-05/0.006993, allocations: 55.41 kB / 329.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.008e-05/0.007073, allocations: 143.1 kB / 330 MB, free: 10.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.007095, allocations: 41.69 kB / 330 MB, free: 10.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.33e-05/0.007158, allocations: 128.8 kB / 330.1 MB, free: 10.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.269e-05/0.007191, allocations: 59.55 kB / 330.2 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.343e-05/0.007264, allocations: 74.02 kB / 330.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.133e-05/0.007345, allocations: 322.8 kB / 330.6 MB, free: 9.688 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.76e-05/0.007423, allocations: 72.56 kB / 330.7 MB, free: 9.617 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.007525, allocations: 132.1 kB / 330.8 MB, free: 9.465 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002217/0.007746, allocations: 175.2 kB / 331 MB, free: 9.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.00775, allocations: 0 / 331 MB, free: 9.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002625/0.008012, allocations: 241.3 kB / 331.2 MB, free: 9.027 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.008026, allocations: 11.94 kB / 331.2 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.008032, allocations: 0 / 331.2 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.008045, allocations: 4 kB / 331.2 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.349e-05/0.008138, allocations: 31.92 kB / 331.2 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.008144, allocations: 4 kB / 331.2 MB, free: 8.977 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.21e-05/0.008206, allocations: 31.77 kB / 331.3 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.008219, allocations: 12 kB / 331.3 MB, free: 8.934 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001067/0.008325, allocations: 150 kB / 331.4 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.63e-05/0.008342, allocations: 23.83 kB / 331.5 MB, free: 8.754 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.337e-05/0.008375, allocations: 20.92 kB / 331.5 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.008378, allocations: 4 kB / 331.5 MB, free: 8.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.008383, allocations: 0 / 331.5 MB, free: 8.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.008386, allocations: 0 / 331.5 MB, free: 8.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004508/0.008837, allocations: 0.5044 MB / 332 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.008838, allocations: 0 / 332 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.258e-05/0.008881, allocations: 23.92 kB / 332 MB, free: 8.156 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.008883, allocations: 0 / 332 MB, free: 8.156 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-06/0.008892, allocations: 8 kB / 332 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.008893, allocations: 0 / 332 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.008894, allocations: 0 / 332 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001805/0.009075, allocations: 275.8 kB / 332.3 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.147e-05/0.009086, allocations: 19.84 kB / 332.3 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.474e-05/0.009101, allocations: 3.984 kB / 332.3 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.418e-05/0.009145, allocations: 8 kB / 332.3 MB, free: 7.832 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.887e-05/0.009204, allocations: 27.89 kB / 332.3 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.009212, allocations: 8 kB / 332.3 MB, free: 7.797 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.404e-05/0.009246, allocations: 99.14 kB / 332.4 MB, free: 7.703 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009246, allocations: 4 kB / 332.4 MB, free: 7.699 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001811/0.009427, allocations: 47.89 kB / 332.5 MB, free: 7.652 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0003624/0.00979, allocations: 0.8042 MB / 333.3 MB, free: 6.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002001/0.00999, allocations: 159.7 kB / 333.5 MB, free: 6.664 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.009991, allocations: 3.938 kB / 333.5 MB, free: 6.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.486e-05/0.01007, allocations: 67.92 kB / 333.5 MB, free: 6.594 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002053/0.01027, allocations: 20.42 kB / 333.5 MB, free: 6.574 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.01166, allocations: 2.011 MB / 335.6 MB, free: 4.445 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.487e-05/0.01174, allocations: 116.5 kB / 335.7 MB, free: 4.309 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.316e-05/0.01179, allocations: 25.94 kB / 335.7 MB, free: 4.285 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.713e-05/0.01187, allocations: 56.48 kB / 335.8 MB, free: 4.23 MB / 298.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01187, allocations: 0 / 335.8 MB, free: 4.23 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01862/0.03048, allocations: 4.196 MB / 339.9 MB, free: 160 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.651/6.682, allocations: 10.97 kB / 340 MB, free: 152 kB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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: 8.350606858730316]