Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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.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_3.2.3_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_3.2.3_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.001569/0.001569, allocations: 110.5 kB / 17.73 MB, free: 5.316 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.001204/0.001204, allocations: 187 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.564/1.564, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 43.94 kB / 328.5 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1217, allocations: 46.62 MB / 375.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003658/0.1254, allocations: 1.687 MB / 376.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009203/0.1263, allocations: 264 kB / 377.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001873/0.1266, allocations: 0 / 377.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002213/0.1268, allocations: 31.67 kB / 377.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.758e-05/0.1269, allocations: 15.81 kB / 377.1 MB, free: 2.598 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005548/0.1275, allocations: 119.8 kB / 377.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000419/0.1279, allocations: 267.6 kB / 377.5 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003895/0.1283, allocations: 189.4 kB / 377.7 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001338/0.1285, allocations: 87.7 kB / 377.8 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00016/0.1287, allocations: 99.53 kB / 377.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.448e-05/0.1287, allocations: 20 kB / 377.9 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.368e-05/0.1288, allocations: 36 kB / 377.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.878e-05/0.1289, allocations: 59.83 kB / 378 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.129, allocations: 99.45 kB / 378.1 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003784/0.1294, allocations: 247 kB / 378.3 MB, free: 1.395 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1294, allocations: 11.88 kB / 378.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1294, allocations: 3.938 kB / 378.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.868e-06/0.1294, allocations: 0 / 378.3 MB, free: 1.379 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.000757/0.1302, allocations: 493.9 kB / 378.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.1303, allocations: 15.89 kB / 378.8 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.154e-05/0.1304, allocations: 24.8 kB / 378.8 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004537/0.1308, allocations: 228.1 kB / 379.1 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.83e-05/0.1309, allocations: 20.94 kB / 379.1 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.25e-05/0.131, allocations: 32.38 kB / 379.1 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005545/0.1315, allocations: 266.5 kB / 379.4 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/0.1316, allocations: 4.188 kB / 379.4 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.171e-05/0.1316, allocations: 11.94 kB / 379.4 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.1317, allocations: 8 kB / 379.4 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003581/0.132, allocations: 169.6 kB / 379.6 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2565/0.3886, allocations: 0.9594 MB / 380.5 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00038/0.389, allocations: 153.9 kB / 380.7 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/0.3892, allocations: 74.56 kB / 380.7 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.867e-05/0.3892, allocations: 10.42 kB / 380.8 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002709/0.3895, allocations: 120.1 kB / 380.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.436e-06/0.3895, allocations: 1.375 kB / 380.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.000596/0.3901, allocations: 213.3 kB / 381.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.764e-05/0.3902, allocations: 55.98 kB / 381.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001941/0.3904, allocations: 157.6 kB / 381.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.662e-05/0.3904, allocations: 35.98 kB / 381.3 MB, free: 12.14 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.3906, allocations: 145.3 kB / 381.5 MB, free: 12.03 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.393e-05/0.3906, allocations: 63.2 kB / 381.5 MB, free: 12 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.3908, allocations: 82 kB / 381.6 MB, free: 11.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.3909, allocations: 325.3 kB / 381.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.391, allocations: 61.89 kB / 382 MB, free: 11.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001936/0.3912, allocations: 140.7 kB / 382.1 MB, free: 11.58 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003314/0.3916, allocations: 185.8 kB / 382.3 MB, free: 11.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.3916, allocations: 8.484 kB / 382.3 MB, free: 11.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004922/0.3921, allocations: 257 kB / 382.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.147e-05/0.3921, allocations: 6.188 kB / 382.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.3922, allocations: 2.531 kB / 382.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.877e-05/0.3922, allocations: 3.781 kB / 382.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001884/0.3924, allocations: 32.34 kB / 382.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.548e-05/0.3924, allocations: 4.641 kB / 382.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.3925, allocations: 28.81 kB / 382.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.752e-05/0.3926, allocations: 19.09 kB / 382.7 MB, free: 11.39 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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.000158/0.3927, allocations: 165.2 kB / 382.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.479e-05/0.3928, allocations: 13.84 kB / 382.8 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004757/0.3933, allocations: 188.8 kB / 383 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.3933, allocations: 3.641 kB / 383 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.3933, allocations: 0.5312 kB / 383 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.3933, allocations: 7.141 kB / 383 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008983/0.3942, allocations: 0.5835 MB / 383.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.3942, allocations: 1.5 kB / 383.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.808e-05/0.3943, allocations: 20.69 kB / 383.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3943, allocations: 1.344 kB / 383.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.3944, allocations: 4.656 kB / 383.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.3944, allocations: 5.938 kB / 383.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3944, allocations: 2.156 kB / 383.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003306/0.3947, allocations: 270 kB / 383.9 MB, free: 10.53 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.217e-05/0.3948, allocations: 92.8 kB / 384 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.898e-05/0.3948, allocations: 7.719 kB / 384 MB, free: 10.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.356e-05/0.3949, allocations: 12.62 kB / 384 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.177e-05/0.395, allocations: 20.64 kB / 384 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-05/0.395, allocations: 5.516 kB / 384.1 MB, free: 10.41 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.886e-05/0.3951, allocations: 104.3 kB / 384.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3951, allocations: 8.938 kB / 384.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003756/0.3955, allocations: 54.95 kB / 384.2 MB, free: 10.3 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 (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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0002429/0.3957, allocations: 107.3 kB / 384.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000478/0.3962, allocations: 193.7 kB / 384.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3962, allocations: 0 / 384.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001907/0.3964, allocations: 82.92 kB / 384.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.3968, allocations: 27.3 kB / 384.6 MB, free: 10.11 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008538/0.3976, allocations: 338 kB / 384.9 MB, free: 9.883 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/0.398, allocations: 0.7323 MB / 385.7 MB, free: 9.188 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001133/0.3981, allocations: 29.73 kB / 385.7 MB, free: 9.184 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.006e-05/0.3982, allocations: 21.06 kB / 385.7 MB, free: 9.176 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3982, allocations: 0 / 385.7 MB, free: 9.176 MB / 318.1 MB Notification: Performance of Templates: time 0.006586/0.4048, allocations: 1.884 MB / 387.6 MB, free: 9.027 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches