Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.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.001359/0.001359, allocations: 112.9 kB / 19.17 MB, free: 3.891 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.001443/0.001443, allocations: 210.5 kB / 22.13 MB, free: 0.9375 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.487/1.487, allocations: 230.4 MB / 255.4 MB, free: 15.02 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample") [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.001871/0.001871, allocations: 75.81 kB / 374.7 MB, free: 9.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1199, allocations: 53.31 MB / 428 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002891/0.1227, allocations: 1.504 MB / 429.5 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000698/0.1234, allocations: 287.2 kB / 429.8 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.977e-05/0.1235, allocations: 0 / 429.8 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001558/0.1237, allocations: 27.67 kB / 429.8 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.96e-05/0.1237, allocations: 11.88 kB / 429.8 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004163/0.1242, allocations: 115.8 kB / 430 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003415/0.1245, allocations: 263.5 kB / 430.2 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002773/0.1248, allocations: 134.4 kB / 430.3 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.1249, allocations: 91.69 kB / 430.4 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001489/0.125, allocations: 95.59 kB / 430.5 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.497e-05/0.1251, allocations: 20 kB / 430.6 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.332e-05/0.1252, allocations: 31.98 kB / 430.6 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.623e-05/0.1252, allocations: 55.84 kB / 430.6 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.1253, allocations: 99.45 kB / 430.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003289/0.1257, allocations: 251 kB / 431 MB, free: 1.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.1257, allocations: 3.938 kB / 431 MB, free: 1.406 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1257, allocations: 0 / 431 MB, free: 1.406 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.1257, allocations: 0 / 431 MB, free: 1.406 MB / 350.1 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.0007645/0.1264, allocations: 486.3 kB / 431.5 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.1265, allocations: 8.031 kB / 431.5 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002699/0.1268, allocations: 32.83 kB / 431.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003052/0.1271, allocations: 228.1 kB / 431.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.2e-05/0.1271, allocations: 20.94 kB / 431.7 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.766e-05/0.1271, allocations: 28.38 kB / 431.8 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004346/0.1276, allocations: 240 kB / 432 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.1276, allocations: 192 / 432 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.661e-05/0.1276, allocations: 11.94 kB / 432 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.1276, allocations: 7.984 kB / 432 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000307/0.1279, allocations: 153.7 kB / 432.2 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2514/0.3794, allocations: 0.6877 MB / 432.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003257/0.3797, allocations: 153.5 kB / 433 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.3798, allocations: 71.19 kB / 433.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.569e-05/0.3798, allocations: 3.047 kB / 433.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002149/0.3801, allocations: 111.6 kB / 433.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.594e-06/0.3801, allocations: 2.781 kB / 433.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.000467/0.3805, allocations: 224.6 kB / 433.4 MB, free: 11.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/0.3806, allocations: 57.73 kB / 433.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.9e-05/0.3807, allocations: 151.2 kB / 433.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.3807, allocations: 32.95 kB / 433.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.928e-05/0.3808, allocations: 133.8 kB / 433.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.466e-05/0.3808, allocations: 68.61 kB / 433.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.3809, allocations: 75.53 kB / 433.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.289e-05/0.381, allocations: 324.3 kB / 434.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.3811, allocations: 63.05 kB / 434.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.3812, allocations: 128.1 kB / 434.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002281/0.3815, allocations: 175.3 kB / 434.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.3815, allocations: 5.344 kB / 434.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000306/0.3818, allocations: 240.7 kB / 434.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.3818, allocations: 9.625 kB / 434.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3818, allocations: 2.125 kB / 434.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.3818, allocations: 3.406 kB / 434.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.382, allocations: 31.75 kB / 434.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.382, allocations: 4.031 kB / 434.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.573e-05/0.3821, allocations: 28.02 kB / 434.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.3821, allocations: 11.16 kB / 434.9 MB, free: 10.44 MB / 350.1 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.0001216/0.3822, allocations: 162.8 kB / 435.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.333e-05/0.3822, allocations: 18.44 kB / 435.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.923e-05/0.3823, allocations: 17.94 kB / 435.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.3823, allocations: 3.312 kB / 435.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.3823, allocations: 0 / 435.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.3823, allocations: 5.062 kB / 435.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005706/0.3829, allocations: 0.5439 MB / 435.7 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3829, allocations: 0 / 435.7 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.74e-05/0.3829, allocations: 18.61 kB / 435.7 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.3829, allocations: 3.156 kB / 435.7 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.383, allocations: 7.469 kB / 435.7 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.383, allocations: 6.938 kB / 435.7 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.383, allocations: 0 / 435.7 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000248/0.3832, allocations: 267.6 kB / 436 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.269e-05/0.3832, allocations: 97.98 kB / 436.1 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.439e-05/0.3833, allocations: 10.09 kB / 436.1 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.084e-05/0.3833, allocations: 3.438 kB / 436.1 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.113e-05/0.3834, allocations: 23.89 kB / 436.1 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.3834, allocations: 11.39 kB / 436.1 MB, free: 9.578 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.104e-05/0.3835, allocations: 94.78 kB / 436.2 MB, free: 9.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3835, allocations: 0 / 436.2 MB, free: 9.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002747/0.3837, allocations: 48.05 kB / 436.2 MB, free: 9.484 MB / 350.1 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.0001035/0.3838, allocations: 109 kB / 436.4 MB, free: 9.395 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003068/0.3842, allocations: 167 kB / 436.5 MB, free: 9.352 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3842, allocations: 4 kB / 436.5 MB, free: 9.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.3843, allocations: 63.5 kB / 436.6 MB, free: 9.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002885/0.3846, allocations: 22.59 kB / 436.6 MB, free: 9.328 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005622/0.3851, allocations: 348.5 kB / 436.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001804/0.3853, allocations: 0.7266 MB / 437.7 MB, free: 8.383 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.345e-05/0.3854, allocations: 21.16 kB / 437.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3854, allocations: 1.406 kB / 437.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of Templates: time 0.004945/0.3903, allocations: 2.204 MB / 439.9 MB, free: 8.18 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 6.9323013939429075]