Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00131/0.001309, allocations: 112.1 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001554/0.001555, allocations: 206.8 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 63.89 kB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3703/0.3721, allocations: 50.55 MB / 409.9 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002891/0.375, allocations: 1.67 MB / 411.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006333/0.3757, allocations: 295.1 kB / 411.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.132e-05/0.3758, allocations: 7.938 kB / 411.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.3759, allocations: 27.73 kB / 411.9 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.226e-05/0.3759, allocations: 19.73 kB / 411.9 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00036/0.3763, allocations: 115.8 kB / 412 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003196/0.3766, allocations: 271.5 kB / 412.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000307/0.377, allocations: 190.9 kB / 412.5 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.3771, allocations: 95.69 kB / 412.6 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000124/0.3772, allocations: 99.55 kB / 412.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.482e-05/0.3772, allocations: 24 kB / 412.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.906e-05/0.3773, allocations: 31.94 kB / 412.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.595e-05/0.3774, allocations: 67.75 kB / 412.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.3775, allocations: 99.52 kB / 412.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000288/0.3778, allocations: 255.1 kB / 413.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3778, allocations: 0 / 413.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3778, allocations: 0 / 413.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.3778, allocations: 4 kB / 413.2 MB, free: 14.37 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.0006792/0.3785, allocations: 0.4919 MB / 413.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.3786, allocations: 12.03 kB / 413.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002326/0.3788, allocations: 28.73 kB / 413.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.3791, allocations: 228 kB / 413.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.378e-05/0.3791, allocations: 24.92 kB / 413.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.839e-05/0.3792, allocations: 32.38 kB / 414 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004193/0.3796, allocations: 262.6 kB / 414.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.3796, allocations: 8.125 kB / 414.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.3797, allocations: 15.94 kB / 414.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.3797, allocations: 4 kB / 414.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002884/0.38, allocations: 161.6 kB / 414.4 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.3811, allocations: 0.9594 MB / 415.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003307/0.3815, allocations: 176.8 kB / 415.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001418/0.3816, allocations: 81.62 kB / 415.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.076e-05/0.3817, allocations: 12 kB / 415.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000248/0.3819, allocations: 129.1 kB / 415.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.144e-06/0.382, allocations: 0 / 415.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004562/0.3824, allocations: 225.9 kB / 416 MB, free: 11.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.3825, allocations: 85.09 kB / 416.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001875/0.3827, allocations: 157.7 kB / 416.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.3827, allocations: 41.7 kB / 416.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.3828, allocations: 136.5 kB / 416.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.291e-05/0.3829, allocations: 59.2 kB / 416.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.383, allocations: 77.69 kB / 416.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.3832, allocations: 334.8 kB / 416.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.3833, allocations: 67.75 kB / 416.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.3835, allocations: 136.5 kB / 417 MB, free: 10.17 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002824/0.3838, allocations: 196.2 kB / 417.2 MB, free: 9.945 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3838, allocations: 0 / 417.2 MB, free: 9.945 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004145/0.3842, allocations: 257.2 kB / 417.5 MB, free: 9.688 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.586e-05/0.3843, allocations: 8 kB / 417.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.3843, allocations: 0 / 417.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.985e-05/0.3843, allocations: 7.984 kB / 417.5 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.3845, allocations: 31.92 kB / 417.5 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.3845, allocations: 4 kB / 417.5 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.3846, allocations: 27.73 kB / 417.6 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.988e-05/0.3846, allocations: 16 kB / 417.6 MB, free: 9.594 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.000151/0.3848, allocations: 173.8 kB / 417.8 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.286e-05/0.3848, allocations: 7.906 kB / 417.8 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.153e-05/0.3849, allocations: 24.83 kB / 417.8 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.3849, allocations: 0 / 417.8 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.3849, allocations: 0 / 417.8 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.073e-05/0.3849, allocations: 88.92 kB / 417.9 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.355e-05/0.385, allocations: 7.984 kB / 417.9 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.957e-05/0.385, allocations: 11.94 kB / 417.9 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.299e-05/0.3851, allocations: 23.97 kB / 417.9 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003902/0.3855, allocations: 340 kB / 418.2 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003533/0.3859, allocations: 421.7 kB / 418.7 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001098/0.386, allocations: 77.12 kB / 418.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.242e-05/0.3861, allocations: 111.2 kB / 418.8 MB, free: 8.281 MB / 334.1 MB Notification: Performance of Backend: time 6.21e-07/0.3861, allocations: 0 / 418.8 MB, free: 8.281 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006206/0.3867, allocations: 212.6 kB / 419 MB, free: 8.07 MB / 334.1 MB Notification: Performance of SimCode: time 0.000745/0.3875, allocations: 0.7387 MB / 419.8 MB, free: 7.285 MB / 334.1 MB Notification: Performance of Templates: time 0.005139/0.3926, allocations: 1.892 MB / 421.7 MB, free: 5.406 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches