Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.008897/0.008897, allocations: 98.42 kB / 21.93 MB, free: 5.188 MB / 14.72 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.002162/0.002162, allocations: 221.8 kB / 25.23 MB, free: 3.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 207.7 MB / 236.1 MB, free: 9.945 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 56.39 kB / 348.4 MB, free: 9.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3041, allocations: 49.15 MB / 397.6 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003373/0.3075, allocations: 1.446 MB / 399 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007739/0.3082, allocations: 254 kB / 399.3 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.3083, allocations: 6.812 kB / 399.3 MB, free: 8.246 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001563/0.3085, allocations: 21.8 kB / 399.3 MB, free: 8.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.868e-05/0.3086, allocations: 14.14 kB / 399.3 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005255/0.3091, allocations: 120.5 kB / 399.4 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004076/0.3095, allocations: 261.8 kB / 399.7 MB, free: 8.043 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003354/0.3098, allocations: 139.8 kB / 399.8 MB, free: 7.984 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.31, allocations: 90.64 kB / 399.9 MB, free: 7.938 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.3101, allocations: 84.12 kB / 400 MB, free: 7.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.383e-05/0.3102, allocations: 29.3 kB / 400 MB, free: 7.887 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000106/0.3103, allocations: 33.17 kB / 400 MB, free: 7.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.494e-05/0.3104, allocations: 55.3 kB / 400.1 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.3105, allocations: 71.55 kB / 400.2 MB, free: 7.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004085/0.3109, allocations: 238.8 kB / 400.4 MB, free: 7.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.3109, allocations: 1.938 kB / 400.4 MB, free: 7.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3109, allocations: 0 / 400.4 MB, free: 7.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.3109, allocations: 0 / 400.4 MB, free: 7.703 MB / 318.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.0007568/0.3117, allocations: 427.4 kB / 400.8 MB, free: 7.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3117, allocations: 13.42 kB / 400.8 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.426e-05/0.3118, allocations: 25.02 kB / 400.9 MB, free: 7.324 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003237/0.3121, allocations: 167.4 kB / 401 MB, free: 7.168 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.854e-05/0.3121, allocations: 27.78 kB / 401.1 MB, free: 7.152 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.328e-05/0.3122, allocations: 26.7 kB / 401.1 MB, free: 7.145 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004614/0.3126, allocations: 241.1 kB / 401.3 MB, free: 7.023 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.3127, allocations: 1.469 kB / 401.3 MB, free: 7.023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.485e-05/0.3127, allocations: 9.406 kB / 401.3 MB, free: 7.016 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.3127, allocations: 10.12 kB / 401.3 MB, free: 7.012 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003154/0.313, allocations: 156.4 kB / 401.5 MB, free: 6.957 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008852/0.3139, allocations: 0.5794 MB / 402.1 MB, free: 6.516 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000297/0.3142, allocations: 157.4 kB / 402.2 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.3143, allocations: 75.12 kB / 402.3 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.845e-05/0.3143, allocations: 1.438 kB / 402.3 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.3145, allocations: 129 kB / 402.4 MB, free: 6.32 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.994e-06/0.3145, allocations: 0 / 402.4 MB, free: 6.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004121/0.3149, allocations: 213.1 kB / 402.6 MB, free: 6.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.97e-05/0.315, allocations: 71.19 kB / 402.7 MB, free: 6.156 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.512e-05/0.3151, allocations: 152.2 kB / 402.8 MB, free: 6.027 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.3151, allocations: 37.61 kB / 402.9 MB, free: 5.988 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.401e-05/0.3152, allocations: 130.1 kB / 403 MB, free: 5.871 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.238e-05/0.3152, allocations: 69.59 kB / 403.1 MB, free: 5.816 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.353e-05/0.3153, allocations: 72.83 kB / 403.2 MB, free: 5.773 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.432e-05/0.3153, allocations: 327.3 kB / 403.5 MB, free: 5.453 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.3155, allocations: 63.2 kB / 403.5 MB, free: 5.434 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.3156, allocations: 121.8 kB / 403.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.3158, allocations: 176.7 kB / 403.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.3158, allocations: 1.031 kB / 403.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003549/0.3162, allocations: 248.9 kB / 404.1 MB, free: 5.105 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.3162, allocations: 6.406 kB / 404.1 MB, free: 5.105 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.3162, allocations: 5.406 kB / 404.1 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.3162, allocations: 2.875 kB / 404.1 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/0.3164, allocations: 32.84 kB / 404.1 MB, free: 5.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.739e-06/0.3164, allocations: 4.156 kB / 404.1 MB, free: 5.094 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.3165, allocations: 29.72 kB / 404.1 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.875e-05/0.3165, allocations: 13.16 kB / 404.2 MB, free: 5.07 MB / 318.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.0001182/0.3166, allocations: 151.1 kB / 404.3 MB, free: 4.934 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.36e-05/0.3166, allocations: 17.59 kB / 404.3 MB, free: 4.922 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003099/0.3169, allocations: 197 kB / 404.5 MB, free: 4.828 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.3169, allocations: 7.719 kB / 404.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.317, allocations: 0 / 404.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.317, allocations: 2.812 kB / 404.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005702/0.3175, allocations: 494.7 kB / 405 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.3175, allocations: 2.188 kB / 405 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.689e-05/0.3176, allocations: 13.88 kB / 405 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.3176, allocations: 5.797 kB / 405 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.3176, allocations: 5.938 kB / 405 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.3176, allocations: 2.047 kB / 405 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3176, allocations: 4 kB / 405 MB, free: 4.469 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003013/0.3179, allocations: 286.6 kB / 405.3 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.979e-05/0.318, allocations: 17.94 kB / 405.3 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.318, allocations: 6.812 kB / 405.3 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.973e-05/0.3181, allocations: 9.328 kB / 405.4 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.61e-05/0.3182, allocations: 23.23 kB / 405.4 MB, free: 4.254 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.3182, allocations: 6.047 kB / 405.4 MB, free: 4.254 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.249e-05/0.3182, allocations: 94.59 kB / 405.5 MB, free: 4.176 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3182, allocations: 0 / 405.5 MB, free: 4.176 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003095/0.3185, allocations: 57.05 kB / 405.5 MB, free: 4.152 MB / 318.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: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 22 * 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.0001172/0.3187, allocations: 110.1 kB / 405.6 MB, free: 4.055 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003238/0.319, allocations: 169.4 kB / 405.8 MB, free: 4.004 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.319, allocations: 1 kB / 405.8 MB, free: 4.004 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001269/0.3191, allocations: 71.44 kB / 405.9 MB, free: 3.984 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002837/0.3194, allocations: 19.38 kB / 405.9 MB, free: 3.977 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005874/0.32, allocations: 353.6 kB / 406.2 MB, free: 3.723 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001056/0.3201, allocations: 121.1 kB / 406.4 MB, free: 3.645 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.552e-05/0.3201, allocations: 30.39 kB / 406.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3201, allocations: 0 / 406.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of Templates: time 0.005412/0.3256, allocations: 2.397 MB / 408.8 MB, free: 3.098 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 7.157996594905853]