Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 115.6 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 214.1 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.473/1.473, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 43.92 kB / 377.7 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2685, allocations: 53.36 MB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003346/0.2719, allocations: 1.727 MB / 432.8 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000829/0.2727, allocations: 291.1 kB / 433.1 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.2728, allocations: 7.938 kB / 433.1 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.273, allocations: 35.67 kB / 433.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.215e-05/0.273, allocations: 11.81 kB / 433.2 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004643/0.2735, allocations: 123.8 kB / 433.3 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004002/0.2739, allocations: 283.4 kB / 433.6 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000303/0.2742, allocations: 149.9 kB / 433.7 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.2743, allocations: 91.66 kB / 433.8 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000168/0.2745, allocations: 111.5 kB / 433.9 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.193e-05/0.2745, allocations: 24 kB / 433.9 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.879e-05/0.2746, allocations: 28 kB / 434 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.189e-05/0.2747, allocations: 63.75 kB / 434 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.2748, allocations: 99.53 kB / 434.1 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003958/0.2752, allocations: 255.3 kB / 434.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2752, allocations: 0 / 434.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2752, allocations: 3.938 kB / 434.4 MB, free: 3.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.2752, allocations: 0 / 434.4 MB, free: 3.57 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.0007002/0.2759, allocations: 421.2 kB / 434.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.276, allocations: 12.03 kB / 434.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.272e-05/0.276, allocations: 62.72 kB / 434.9 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002502/0.2763, allocations: 32.78 kB / 434.9 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003213/0.2766, allocations: 174.2 kB / 435.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.31e-05/0.2767, allocations: 24.88 kB / 435.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.388e-05/0.2767, allocations: 28.36 kB / 435.1 MB, free: 2.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004784/0.2772, allocations: 269.7 kB / 435.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.2772, allocations: 7.938 kB / 435.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.402e-05/0.2772, allocations: 11.97 kB / 435.4 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.2772, allocations: 8 kB / 435.4 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003148/0.2776, allocations: 161.6 kB / 435.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.2789, allocations: 0.921 MB / 436.5 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000323/0.2792, allocations: 157.4 kB / 436.6 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.2793, allocations: 73.69 kB / 436.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.2794, allocations: 7.938 kB / 436.7 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002538/0.2796, allocations: 134.7 kB / 436.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.763e-06/0.2796, allocations: 0 / 436.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004618/0.2801, allocations: 217 kB / 437.1 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/0.2802, allocations: 97.17 kB / 437.2 MB, free: 0.582 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.2803, allocations: 153.3 kB / 437.3 MB, free: 436 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.255e-05/0.2804, allocations: 37.7 kB / 437.3 MB, free: 392 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.2805, allocations: 148.7 kB / 437.5 MB, free: 236 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.782e-05/0.2806, allocations: 59.53 kB / 437.6 MB, free: 176 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.2807, allocations: 77.47 kB / 437.6 MB, free: 92 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.2808, allocations: 334.8 kB / 438 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.281, allocations: 63.97 kB / 438 MB, free: 15.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.2812, allocations: 140.5 kB / 438.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003037/0.2815, allocations: 196.8 kB / 438.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.2815, allocations: 0 / 438.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004385/0.2819, allocations: 257.3 kB / 438.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.2819, allocations: 11.94 kB / 438.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.2819, allocations: 0 / 438.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.282, allocations: 4 kB / 438.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.2822, allocations: 35.86 kB / 438.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.63e-05/0.2822, allocations: 4 kB / 438.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001568/0.2823, allocations: 32.16 kB / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-05/0.2824, allocations: 12 kB / 438.7 MB, free: 14.95 MB / 350.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.0002459/0.2826, allocations: 165.6 kB / 438.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.274e-05/0.2826, allocations: 19.89 kB / 438.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.434e-05/0.2827, allocations: 16.94 kB / 438.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.2827, allocations: 4 kB / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.2827, allocations: 0 / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.2827, allocations: 0 / 438.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007957/0.2835, allocations: 0.5509 MB / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.2835, allocations: 0 / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.419e-05/0.2836, allocations: 19.92 kB / 439.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.2836, allocations: 0 / 439.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.2836, allocations: 11.94 kB / 439.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.2836, allocations: 0 / 439.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2836, allocations: 0 / 439.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003276/0.284, allocations: 279 kB / 439.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.054e-05/0.284, allocations: 15.89 kB / 439.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.516e-05/0.284, allocations: 3.938 kB / 439.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.298e-05/0.2841, allocations: 11.98 kB / 439.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.424e-05/0.2842, allocations: 23.91 kB / 439.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.2842, allocations: 8 kB / 439.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.759e-05/0.2842, allocations: 95.27 kB / 439.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2842, allocations: 0 / 439.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000304/0.2846, allocations: 55.84 kB / 440 MB, free: 13.59 MB / 350.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.0006787/0.2852, allocations: 0.8106 MB / 440.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003653/0.2856, allocations: 164.2 kB / 440.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.2856, allocations: 4.125 kB / 440.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001502/0.2857, allocations: 81.94 kB / 441 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003271/0.2861, allocations: 23.97 kB / 441 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002633/0.2887, allocations: 2.056 MB / 443.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004302/0.2891, allocations: 0.7365 MB / 443.8 MB, free: 9.531 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.758e-05/0.2892, allocations: 17.95 kB / 443.8 MB, free: 9.508 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.2893, allocations: 59.41 kB / 443.9 MB, free: 9.449 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2893, allocations: 0 / 443.9 MB, free: 9.449 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03024/0.3196, allocations: 3.761 MB / 447.7 MB, free: 5.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.25, allocations: 4.812 kB / 447.7 MB, free: 5.816 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.735167324077338]