Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001511/0.001511, allocations: 107.1 kB / 17.74 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.001735/0.001735, allocations: 188.2 kB / 18.67 MB, free: 4.395 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.441/1.441, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 51.91 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2617, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002641/0.2644, allocations: 1.664 MB / 403 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006545/0.2651, allocations: 291.1 kB / 403.3 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.749e-05/0.2652, allocations: 7.938 kB / 403.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001311/0.2653, allocations: 27.67 kB / 403.4 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.104e-05/0.2654, allocations: 15.81 kB / 403.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004083/0.2658, allocations: 123.7 kB / 403.5 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003263/0.2661, allocations: 279.4 kB / 403.8 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003071/0.2664, allocations: 186.9 kB / 404 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.2666, allocations: 95.7 kB / 404.1 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001266/0.2667, allocations: 103.5 kB / 404.2 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.64e-05/0.2667, allocations: 24 kB / 404.2 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.453e-05/0.2668, allocations: 32 kB / 404.2 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.944e-05/0.2669, allocations: 59.83 kB / 404.3 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.099e-05/0.267, allocations: 99.52 kB / 404.4 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000282/0.2673, allocations: 255.1 kB / 404.6 MB, free: 5.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.2673, allocations: 0 / 404.6 MB, free: 5.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2673, allocations: 0 / 404.6 MB, free: 5.629 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.2673, allocations: 0 / 404.6 MB, free: 5.629 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.0006838/0.268, allocations: 0.4996 MB / 405.1 MB, free: 5.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.2681, allocations: 15.89 kB / 405.1 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.331e-05/0.2681, allocations: 20.75 kB / 405.1 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002825/0.2684, allocations: 228 kB / 405.4 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.198e-05/0.2684, allocations: 20.94 kB / 405.4 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.885e-05/0.2685, allocations: 28.38 kB / 405.4 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004843/0.269, allocations: 278.5 kB / 405.7 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.269, allocations: 192 / 405.7 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/0.269, allocations: 15.94 kB / 405.7 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.269, allocations: 4 kB / 405.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002839/0.2693, allocations: 165.6 kB / 405.9 MB, free: 4.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.2705, allocations: 0.9672 MB / 406.8 MB, free: 3.234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002847/0.2708, allocations: 177.4 kB / 407 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001237/0.2709, allocations: 93.62 kB / 407.1 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.2709, allocations: 3.938 kB / 407.1 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002149/0.2711, allocations: 141 kB / 407.2 MB, free: 2.785 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.562e-06/0.2712, allocations: 0 / 407.2 MB, free: 2.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004385/0.2716, allocations: 227 kB / 407.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/0.2717, allocations: 81.11 kB / 407.5 MB, free: 2.461 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.2718, allocations: 149.6 kB / 407.7 MB, free: 2.305 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.647e-05/0.2718, allocations: 45.69 kB / 407.7 MB, free: 2.254 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.351e-05/0.2719, allocations: 140.4 kB / 407.9 MB, free: 2.113 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.978e-05/0.272, allocations: 59.19 kB / 407.9 MB, free: 2.055 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.421e-05/0.2721, allocations: 81.67 kB / 408 MB, free: 1.969 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.2722, allocations: 330.8 kB / 408.3 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.2724, allocations: 68 kB / 408.4 MB, free: 1.57 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.2725, allocations: 140.3 kB / 408.5 MB, free: 1.402 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/0.2728, allocations: 200.8 kB / 408.7 MB, free: 1.176 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2728, allocations: 0 / 408.7 MB, free: 1.176 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003761/0.2732, allocations: 257.2 kB / 409 MB, free: 0.918 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.2732, allocations: 4 kB / 409 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.2732, allocations: 4 kB / 409 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.2733, allocations: 4 kB / 409 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001457/0.2734, allocations: 35.91 kB / 409 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.2734, allocations: 7.938 kB / 409 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.2735, allocations: 28.03 kB / 409.1 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.683e-05/0.2736, allocations: 12 kB / 409.1 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.0001479/0.2737, allocations: 161.6 kB / 409.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.631e-05/0.2738, allocations: 11.91 kB / 409.2 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003284/0.2741, allocations: 198.3 kB / 409.4 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.2741, allocations: 0 / 409.4 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.2741, allocations: 4 kB / 409.4 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.2741, allocations: 0 / 409.4 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007193/0.2749, allocations: 0.5949 MB / 410 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.2749, allocations: 0 / 410 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.511e-05/0.275, allocations: 15.98 kB / 410.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.275, allocations: 0 / 410.1 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.275, allocations: 11.94 kB / 410.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.275, allocations: 4 kB / 410.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.275, allocations: 0 / 410.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003061/0.2753, allocations: 300 kB / 410.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.076e-05/0.2754, allocations: 88.95 kB / 410.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.031e-05/0.2754, allocations: 15.92 kB / 410.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.777e-05/0.2755, allocations: 4 kB / 410.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.904e-05/0.2756, allocations: 19.97 kB / 410.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.2756, allocations: 12 kB / 410.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.351e-05/0.2757, allocations: 98.78 kB / 410.6 MB, free: 15.19 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2757, allocations: 0 / 410.6 MB, free: 15.19 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000316/0.276, allocations: 59.75 kB / 410.7 MB, free: 15.13 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,step.active,transition1.enableFire,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.0001512/0.2762, allocations: 111.1 kB / 410.8 MB, free: 15.01 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003229/0.2765, allocations: 184.1 kB / 410.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2765, allocations: 0 / 410.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001297/0.2766, allocations: 100.1 kB / 411 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002932/0.2769, allocations: 24.61 kB / 411.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005904/0.2775, allocations: 370.7 kB / 411.4 MB, free: 14.31 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003064/0.2779, allocations: 0.7323 MB / 412.2 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.465e-05/0.2779, allocations: 31.44 kB / 412.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2779, allocations: 0 / 412.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of Templates: time 0.004228/0.2822, allocations: 2.457 MB / 414.6 MB, free: 11.05 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches