Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001204/0.001204, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001186/0.001186, allocations: 208.7 kB / 18.74 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.624/1.624, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 59.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.405/0.4062, allocations: 50.55 MB / 409.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003035/0.4092, allocations: 1.702 MB / 410.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006903/0.41, allocations: 287.2 kB / 411.2 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.4101, allocations: 7.938 kB / 411.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001497/0.4102, allocations: 31.67 kB / 411.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.388e-05/0.4103, allocations: 27.67 kB / 411.3 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004035/0.4107, allocations: 111.8 kB / 411.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003376/0.4111, allocations: 271.5 kB / 411.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003189/0.4114, allocations: 185.5 kB / 411.8 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001127/0.4115, allocations: 87.7 kB / 411.9 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001583/0.4117, allocations: 103.5 kB / 412 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.263e-05/0.4117, allocations: 24 kB / 412 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.988e-05/0.4118, allocations: 31.94 kB / 412.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.704e-05/0.4119, allocations: 59.88 kB / 412.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001164/0.412, allocations: 103.5 kB / 412.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003414/0.4124, allocations: 247.1 kB / 412.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.4124, allocations: 0 / 412.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4124, allocations: 0 / 412.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.4124, allocations: 0 / 412.5 MB, free: 14.33 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.0007007/0.4131, allocations: 499.8 kB / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.4131, allocations: 12.03 kB / 413 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002319/0.4134, allocations: 36.73 kB / 413 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.4137, allocations: 228 kB / 413.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.736e-05/0.4137, allocations: 24.94 kB / 413.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.75e-05/0.4138, allocations: 24.38 kB / 413.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004329/0.4142, allocations: 274.5 kB / 413.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.4142, allocations: 192 / 413.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.027e-05/0.4143, allocations: 15.94 kB / 413.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.4143, allocations: 8 kB / 413.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002834/0.4146, allocations: 165.6 kB / 413.7 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.4156, allocations: 0.9594 MB / 414.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000255/0.4159, allocations: 161.4 kB / 414.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001179/0.416, allocations: 89.72 kB / 414.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.4161, allocations: 0 / 414.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001955/0.4163, allocations: 137 kB / 415.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.795e-06/0.4163, allocations: 3.984 kB / 415.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003724/0.4166, allocations: 222.7 kB / 415.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/0.4167, allocations: 85.09 kB / 415.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.4168, allocations: 149.6 kB / 415.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/0.4169, allocations: 45.81 kB / 415.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.477e-05/0.417, allocations: 136.5 kB / 415.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.729e-05/0.417, allocations: 59.27 kB / 415.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.4171, allocations: 81.45 kB / 415.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.4173, allocations: 330.7 kB / 416.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.4174, allocations: 67.97 kB / 416.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.4176, allocations: 136.5 kB / 416.4 MB, free: 10.13 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002505/0.4178, allocations: 200.2 kB / 416.6 MB, free: 9.906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.4178, allocations: 0 / 416.6 MB, free: 9.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003525/0.4182, allocations: 249.4 kB / 416.8 MB, free: 9.656 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.4182, allocations: 10.97 kB / 416.8 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.4182, allocations: 0 / 416.8 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.306e-05/0.4183, allocations: 4 kB / 416.8 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.4184, allocations: 35.92 kB / 416.8 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-05/0.4184, allocations: 7.984 kB / 416.9 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.964e-05/0.4186, allocations: 27.69 kB / 416.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.4186, allocations: 15.94 kB / 416.9 MB, free: 9.559 MB / 334.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.0001638/0.4187, allocations: 169.8 kB / 417.1 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.103e-05/0.4188, allocations: 7.906 kB / 417.1 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.251e-05/0.4188, allocations: 16.84 kB / 417.1 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.4188, allocations: 4 kB / 417.1 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.4189, allocations: 0 / 417.1 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.4189, allocations: 3.984 kB / 417.1 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006694/0.4195, allocations: 0.582 MB / 417.7 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4196, allocations: 0 / 417.7 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.502e-05/0.4196, allocations: 12 kB / 417.7 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.4196, allocations: 4 kB / 417.7 MB, free: 8.688 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.4197, allocations: 7.984 kB / 417.7 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.4197, allocations: 11.88 kB / 417.7 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4197, allocations: 0 / 417.7 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002756/0.42, allocations: 264.1 kB / 418 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.234e-05/0.42, allocations: 92.86 kB / 418.1 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.871e-05/0.42, allocations: 11.98 kB / 418.1 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.4202, allocations: 11.94 kB / 418.1 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.033e-05/0.4202, allocations: 19.97 kB / 418.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.4203, allocations: 12 kB / 418.1 MB, free: 8.227 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.684e-05/0.4203, allocations: 95.27 kB / 418.2 MB, free: 8.133 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4203, allocations: 0 / 418.2 MB, free: 8.133 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002935/0.4206, allocations: 51.84 kB / 418.3 MB, free: 8.082 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: 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.0001416/0.4208, allocations: 111.2 kB / 418.4 MB, free: 7.965 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003121/0.4211, allocations: 184.1 kB / 418.5 MB, free: 7.785 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.4211, allocations: 3.938 kB / 418.5 MB, free: 7.781 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001165/0.4212, allocations: 79.72 kB / 418.6 MB, free: 7.703 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.4215, allocations: 23.92 kB / 418.6 MB, free: 7.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000587/0.4221, allocations: 330.9 kB / 419 MB, free: 7.328 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003242/0.4225, allocations: 0.7365 MB / 419.7 MB, free: 6.559 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.548e-05/0.4226, allocations: 21.95 kB / 419.7 MB, free: 6.535 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.085e-05/0.4226, allocations: 19.44 kB / 419.7 MB, free: 6.516 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4226, allocations: 0 / 419.7 MB, free: 6.516 MB / 334.1 MB Notification: Performance of Templates: time 0.00458/0.4272, allocations: 1.701 MB / 421.5 MB, free: 4.824 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches