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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001935/0.001935, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002874/0.002874, allocations: 206.4 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 230.5 MB / 257.4 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002108/0.002108, allocations: 63.89 kB / 377.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2585, allocations: 53.42 MB / 431.1 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003409/0.2619, allocations: 1.647 MB / 432.8 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007467/0.2627, allocations: 291.2 kB / 433.1 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.2628, allocations: 7.938 kB / 433.1 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001566/0.263, allocations: 31.67 kB / 433.1 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.814e-05/0.263, allocations: 15.8 kB / 433.1 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000416/0.2634, allocations: 123.8 kB / 433.2 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003643/0.2638, allocations: 275.5 kB / 433.5 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002984/0.2641, allocations: 161.2 kB / 433.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.2642, allocations: 99.69 kB / 433.8 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001389/0.2643, allocations: 91.47 kB / 433.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.753e-05/0.2644, allocations: 24 kB / 433.9 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.576e-05/0.2645, allocations: 27.94 kB / 433.9 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.309e-05/0.2645, allocations: 63.83 kB / 434 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.2646, allocations: 87.58 kB / 434 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003145/0.2649, allocations: 254.9 kB / 434.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.075e-06/0.2649, allocations: 0 / 434.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2649, allocations: 0 / 434.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.265, allocations: 0 / 434.3 MB, free: 3.242 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.0006805/0.2656, allocations: 425.2 kB / 434.7 MB, free: 2.793 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.2657, allocations: 15.98 kB / 434.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.489e-05/0.2658, allocations: 62.72 kB / 434.8 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002286/0.266, allocations: 36.77 kB / 434.8 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003125/0.2663, allocations: 170.2 kB / 435 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.333e-05/0.2663, allocations: 20.88 kB / 435 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.911e-05/0.2664, allocations: 32.38 kB / 435 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004685/0.2668, allocations: 265.7 kB / 435.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.2669, allocations: 3.938 kB / 435.3 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.457e-05/0.2669, allocations: 12 kB / 435.3 MB, free: 2.129 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.2669, allocations: 12 kB / 435.3 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003658/0.2673, allocations: 165.6 kB / 435.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/0.2685, allocations: 0.8664 MB / 436.3 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003351/0.2688, allocations: 161.4 kB / 436.5 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001188/0.2689, allocations: 69.08 kB / 436.6 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.269, allocations: 0 / 436.6 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002191/0.2692, allocations: 145 kB / 436.7 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.252e-06/0.2692, allocations: 0 / 436.7 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004361/0.2696, allocations: 229.9 kB / 436.9 MB, free: 408 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.326e-05/0.2697, allocations: 81.11 kB / 437 MB, free: 308 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.2698, allocations: 161.6 kB / 437.2 MB, free: 136 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.765e-05/0.2699, allocations: 37.7 kB / 437.2 MB, free: 92 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.27, allocations: 140.8 kB / 437.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.52e-05/0.27, allocations: 63.53 kB / 437.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.2701, allocations: 81.62 kB / 437.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.2703, allocations: 330.8 kB / 437.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.2704, allocations: 63.75 kB / 437.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.2706, allocations: 144.4 kB / 438 MB, free: 15.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002618/0.2708, allocations: 196.4 kB / 438.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.2708, allocations: 4 kB / 438.2 MB, free: 15 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000382/0.2712, allocations: 257.3 kB / 438.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.2712, allocations: 4 kB / 438.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.2712, allocations: 4 kB / 438.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.2712, allocations: 4 kB / 438.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.2714, allocations: 31.91 kB / 438.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.2714, allocations: 7.938 kB / 438.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.403e-05/0.2715, allocations: 27.78 kB / 438.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.2715, allocations: 16.28 kB / 438.6 MB, free: 14.65 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.0001469/0.2717, allocations: 162.4 kB / 438.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.716e-05/0.2717, allocations: 15.91 kB / 438.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.077e-05/0.2717, allocations: 24.92 kB / 438.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2717, allocations: 0 / 438.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.2717, allocations: 4 kB / 438.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2717, allocations: 0 / 438.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007082/0.2725, allocations: 0.5314 MB / 439.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2725, allocations: 0 / 439.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.171e-05/0.2725, allocations: 19.94 kB / 439.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.2725, allocations: 4 kB / 439.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/0.2726, allocations: 15.92 kB / 439.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.2726, allocations: 0 / 439.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.2726, allocations: 0 / 439.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003165/0.2729, allocations: 268.2 kB / 439.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.308e-05/0.2729, allocations: 23.83 kB / 439.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.654e-05/0.2729, allocations: 7.938 kB / 439.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.336e-05/0.273, allocations: 4 kB / 439.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.24e-05/0.2731, allocations: 23.91 kB / 439.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-05/0.2731, allocations: 11.98 kB / 439.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.457e-05/0.2732, allocations: 102.4 kB / 439.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2732, allocations: 0 / 439.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003061/0.2735, allocations: 55.84 kB / 439.8 MB, free: 13.31 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,step.active,transition1.enableFire,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.000639/0.2741, allocations: 0.8188 MB / 440.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003374/0.2744, allocations: 175.7 kB / 440.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2744, allocations: 0 / 440.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001316/0.2746, allocations: 76.41 kB / 440.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002934/0.2749, allocations: 26.75 kB / 440.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002533/0.2774, allocations: 2.059 MB / 443 MB, free: 9.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001461/0.2775, allocations: 129.5 kB / 443.1 MB, free: 9.844 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.094e-05/0.2776, allocations: 21.94 kB / 443.1 MB, free: 9.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.2778, allocations: 59.42 kB / 443.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of SimCode: time 6.32e-07/0.2778, allocations: 0 / 443.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03139/0.3091, allocations: 4.16 MB / 447.3 MB, free: 5.719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.24, allocations: 10.97 kB / 447.3 MB, free: 5.711 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.734627441968769]