Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001248/0.001248, allocations: 107.5 kB / 18.4 MB, free: 4.699 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.001193/0.001193, allocations: 187.1 kB / 19.33 MB, free: 3.781 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.243/1.243, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001266/0.001266, allocations: 63.91 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08519/0.08646, allocations: 46.61 MB / 375.8 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002845/0.08935, allocations: 1.653 MB / 377.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006544/0.09003, allocations: 259.2 kB / 377.7 MB, free: 2.688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.09017, allocations: 4 kB / 377.7 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001563/0.09035, allocations: 27.67 kB / 377.7 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.262e-05/0.09044, allocations: 19.8 kB / 377.8 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000444/0.09089, allocations: 123.8 kB / 377.9 MB, free: 2.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003145/0.09121, allocations: 271.5 kB / 378.1 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003333/0.09156, allocations: 194.9 kB / 378.3 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.7e-05/0.09166, allocations: 87.7 kB / 378.4 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001369/0.09181, allocations: 99.53 kB / 378.5 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.09185, allocations: 24 kB / 378.5 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.65e-05/0.09194, allocations: 35.98 kB / 378.6 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.762e-05/0.092, allocations: 55.83 kB / 378.6 MB, free: 1.758 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.317e-05/0.0921, allocations: 99.47 kB / 378.7 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000282/0.09239, allocations: 259 kB / 379 MB, free: 1.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.0924, allocations: 0 / 379 MB, free: 1.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.09241, allocations: 0 / 379 MB, free: 1.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.09242, allocations: 0 / 379 MB, free: 1.406 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.0006303/0.09306, allocations: 0.4978 MB / 379.5 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.09311, allocations: 11.89 kB / 379.5 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.379e-05/0.09318, allocations: 20.75 kB / 379.5 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002914/0.09348, allocations: 232 kB / 379.7 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.518e-05/0.09352, allocations: 28.94 kB / 379.8 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.591e-05/0.09356, allocations: 28.38 kB / 379.8 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004214/0.09399, allocations: 270.5 kB / 380 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.09401, allocations: 192 / 380 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.915e-05/0.09405, allocations: 19.92 kB / 380.1 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.09406, allocations: 4 kB / 380.1 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002866/0.09435, allocations: 165.6 kB / 380.2 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1938/0.2881, allocations: 0.9607 MB / 381.2 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002963/0.2885, allocations: 150.1 kB / 381.3 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.2886, allocations: 76.28 kB / 381.4 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.2887, allocations: 6.688 kB / 381.4 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002151/0.2889, allocations: 121 kB / 381.5 MB, free: 12.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.256e-06/0.2889, allocations: 3.594 kB / 381.5 MB, free: 12.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004372/0.2893, allocations: 215.1 kB / 381.8 MB, free: 12.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.531e-05/0.2894, allocations: 57.27 kB / 381.8 MB, free: 12.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.2895, allocations: 154.8 kB / 382 MB, free: 12.21 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.2895, allocations: 36.16 kB / 382 MB, free: 12.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.213e-05/0.2896, allocations: 144.8 kB / 382.1 MB, free: 12.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.172e-05/0.2897, allocations: 61.39 kB / 382.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.2898, allocations: 77.03 kB / 382.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.87e-05/0.2899, allocations: 330.5 kB / 382.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.29, allocations: 60.7 kB / 382.7 MB, free: 11.7 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.2901, allocations: 139.6 kB / 382.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002187/0.2904, allocations: 188.4 kB / 383 MB, free: 11.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.2904, allocations: 3.938 kB / 383 MB, free: 11.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004188/0.2908, allocations: 253.3 kB / 383.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.2908, allocations: 6.875 kB / 383.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.2908, allocations: 2.25 kB / 383.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.2909, allocations: 6.125 kB / 383.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.291, allocations: 37.23 kB / 383.3 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.291, allocations: 7.391 kB / 383.3 MB, free: 11.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.2911, allocations: 25.33 kB / 383.3 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.756e-05/0.2912, allocations: 15.08 kB / 383.3 MB, free: 11.42 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.0001387/0.2913, allocations: 163.9 kB / 383.5 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.136e-05/0.2914, allocations: 14.17 kB / 383.5 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003678/0.2917, allocations: 195.2 kB / 383.7 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.2918, allocations: 2.875 kB / 383.7 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.2918, allocations: 5.422 kB / 383.7 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.2918, allocations: 1.266 kB / 383.7 MB, free: 11.17 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006997/0.2925, allocations: 0.5889 MB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.2925, allocations: 1.125 kB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.183e-05/0.2926, allocations: 12.44 kB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.2926, allocations: 1.953 kB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.2926, allocations: 6.875 kB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.2926, allocations: 7.578 kB / 384.3 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2926, allocations: 0 / 384.3 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003196/0.293, allocations: 281.8 kB / 384.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.674e-05/0.293, allocations: 89.86 kB / 384.7 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.293, allocations: 7 kB / 384.7 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.166e-05/0.2931, allocations: 15.88 kB / 384.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.532e-05/0.2932, allocations: 20.22 kB / 384.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.2932, allocations: 6.281 kB / 384.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.752e-05/0.2933, allocations: 104.3 kB / 384.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2933, allocations: 288 / 384.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003495/0.2937, allocations: 55.89 kB / 384.9 MB, free: 10.32 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,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: 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.00014/0.2938, allocations: 111.5 kB / 385 MB, free: 10.22 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003591/0.2942, allocations: 186.1 kB / 385.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2942, allocations: 0 / 385.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.2943, allocations: 82.64 kB / 385.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.2946, allocations: 29.23 kB / 385.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006536/0.2953, allocations: 364 kB / 385.6 MB, free: 9.867 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002101/0.2955, allocations: 0.7352 MB / 386.4 MB, free: 9.168 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.877e-05/0.2956, allocations: 23.48 kB / 386.4 MB, free: 9.16 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2956, allocations: 3.938 kB / 386.4 MB, free: 9.156 MB / 318.1 MB Notification: Performance of Templates: time 0.006897/0.3025, allocations: 2.44 MB / 388.8 MB, free: 8.902 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches