Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001952/0.001952, allocations: 113.2 kB / 17.07 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002493/0.002493, allocations: 194.8 kB / 18 MB, free: 5.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.63/1.63, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 43.94 kB / 351.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4757/0.4769, allocations: 49.44 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.005115/0.482, allocations: 1.692 MB / 402.4 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000832/0.4829, allocations: 287.2 kB / 402.7 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.4831, allocations: 7.938 kB / 402.7 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.4832, allocations: 31.62 kB / 402.7 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.074e-05/0.4833, allocations: 19.78 kB / 402.7 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000489/0.4838, allocations: 115.8 kB / 402.8 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005001/0.4844, allocations: 267.5 kB / 403.1 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004243/0.4848, allocations: 193.5 kB / 403.3 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001648/0.485, allocations: 91.7 kB / 403.4 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002216/0.4852, allocations: 103.5 kB / 403.5 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.121e-05/0.4853, allocations: 27.94 kB / 403.5 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001397/0.4854, allocations: 24 kB / 403.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.4855, allocations: 59.88 kB / 403.6 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001862/0.4857, allocations: 103.5 kB / 403.7 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005068/0.4862, allocations: 255.1 kB / 403.9 MB, free: 5.613 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.4863, allocations: 0 / 403.9 MB, free: 5.613 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.057e-06/0.4863, allocations: 0 / 403.9 MB, free: 5.613 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.21e-05/0.4863, allocations: 4 kB / 404 MB, free: 5.609 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001293/0.4876, allocations: 495.9 kB / 404.4 MB, free: 5.074 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.44e-05/0.4877, allocations: 11.89 kB / 404.4 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.502e-05/0.4878, allocations: 24.66 kB / 404.5 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005712/0.4884, allocations: 232 kB / 404.7 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.449e-05/0.4884, allocations: 20.94 kB / 404.7 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.298e-05/0.4885, allocations: 32.38 kB / 404.8 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005334/0.489, allocations: 274.5 kB / 405 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.489, allocations: 192 / 405 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.286e-05/0.4891, allocations: 15.94 kB / 405 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.4891, allocations: 8 kB / 405 MB, free: 4.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004055/0.4895, allocations: 165.6 kB / 405.2 MB, free: 4.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001444/0.491, allocations: 0.9711 MB / 406.2 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003739/0.4914, allocations: 173.5 kB / 406.3 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.4915, allocations: 83.31 kB / 406.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.4916, allocations: 4 kB / 406.4 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003084/0.4919, allocations: 140.7 kB / 406.6 MB, free: 2.785 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.773e-06/0.4919, allocations: 0 / 406.6 MB, free: 2.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004812/0.4924, allocations: 221.3 kB / 406.8 MB, free: 2.562 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/0.4925, allocations: 85.09 kB / 406.9 MB, free: 2.461 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000198/0.4927, allocations: 149.5 kB / 407 MB, free: 2.305 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.415e-05/0.4928, allocations: 41.69 kB / 407.1 MB, free: 2.258 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.4929, allocations: 144.5 kB / 407.2 MB, free: 2.113 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.531e-05/0.493, allocations: 47.36 kB / 407.2 MB, free: 2.066 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.4931, allocations: 85.58 kB / 407.3 MB, free: 1.977 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.4933, allocations: 334.9 kB / 407.7 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.4934, allocations: 59.97 kB / 407.7 MB, free: 1.582 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002017/0.4936, allocations: 148.2 kB / 407.9 MB, free: 1.406 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002713/0.4939, allocations: 200.8 kB / 408.1 MB, free: 1.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.4939, allocations: 4 kB / 408.1 MB, free: 1.176 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003979/0.4943, allocations: 253.2 kB / 408.3 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.4943, allocations: 8 kB / 408.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.4943, allocations: 0 / 408.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.4944, allocations: 7.984 kB / 408.3 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.4945, allocations: 31.92 kB / 408.3 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/0.4946, allocations: 8.281 kB / 408.4 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.4947, allocations: 27.78 kB / 408.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.981e-05/0.4947, allocations: 15.94 kB / 408.4 MB, free: 0.8242 MB / 318.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.0001894/0.4949, allocations: 161.7 kB / 408.6 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.894e-05/0.4949, allocations: 15.81 kB / 408.6 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003611/0.4953, allocations: 186.4 kB / 408.8 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.4953, allocations: 4 kB / 408.8 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.4953, allocations: 0 / 408.8 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.4954, allocations: 4 kB / 408.8 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000866/0.4962, allocations: 0.6026 MB / 409.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.4962, allocations: 0 / 409.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.998e-05/0.4963, allocations: 19.92 kB / 409.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.4963, allocations: 0 / 409.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.407e-05/0.4964, allocations: 11.94 kB / 409.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.4964, allocations: 0 / 409.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.4964, allocations: 0 / 409.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003557/0.4967, allocations: 291.8 kB / 409.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.213e-05/0.4968, allocations: 88.95 kB / 409.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/0.4969, allocations: 15.92 kB / 409.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.844e-05/0.497, allocations: 8 kB / 409.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.4971, allocations: 19.97 kB / 409.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.4971, allocations: 8 kB / 409.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.865e-05/0.4972, allocations: 93.64 kB / 409.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4972, allocations: 4 kB / 409.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003336/0.4975, allocations: 51.84 kB / 410 MB, free: 15.14 MB / 334.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: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0001944/0.4977, allocations: 119.1 kB / 410.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000371/0.4981, allocations: 180.1 kB / 410.3 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.4981, allocations: 3.938 kB / 410.3 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001387/0.4983, allocations: 88.84 kB / 410.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.4986, allocations: 31.98 kB / 410.4 MB, free: 14.72 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007109/0.4993, allocations: 352.9 kB / 410.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003958/0.4997, allocations: 0.744 MB / 411.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.657e-05/0.4998, allocations: 25.94 kB / 411.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.427e-05/0.4999, allocations: 19.44 kB / 411.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4999, allocations: 0 / 411.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of Templates: time 0.006049/0.506, allocations: 1.903 MB / 413.4 MB, free: 11.62 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches