Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001435/0.001435, allocations: 110 kB / 20.43 MB, free: 1.453 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.001706/0.001706, allocations: 210.7 kB / 23.74 MB, free: 4.66 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.383/1.383, allocations: 230.5 MB / 257.4 MB, free: 7.988 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_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 55.91 kB / 377.7 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2531, allocations: 53.41 MB / 431.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003179/0.2563, allocations: 1.737 MB / 432.9 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007626/0.2571, allocations: 295.1 kB / 433.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001299/0.2572, allocations: 11.94 kB / 433.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.2573, allocations: 23.67 kB / 433.2 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.927e-05/0.2574, allocations: 19.8 kB / 433.2 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004121/0.2578, allocations: 119.8 kB / 433.4 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003729/0.2582, allocations: 275.4 kB / 433.6 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002972/0.2585, allocations: 157.9 kB / 433.8 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001335/0.2586, allocations: 95.64 kB / 433.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.2588, allocations: 103.5 kB / 434 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.814e-05/0.2588, allocations: 20 kB / 434 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.417e-05/0.2589, allocations: 35.97 kB / 434 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.728e-05/0.259, allocations: 51.84 kB / 434.1 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.2591, allocations: 103.5 kB / 434.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003265/0.2594, allocations: 259.2 kB / 434.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2594, allocations: 0 / 434.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2594, allocations: 0 / 434.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.2594, allocations: 0 / 434.4 MB, free: 3.406 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.0006522/0.2601, allocations: 425.2 kB / 434.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.2601, allocations: 8.031 kB / 434.9 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.503e-05/0.2602, allocations: 62.72 kB / 434.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002006/0.2604, allocations: 32.78 kB / 434.9 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002915/0.2607, allocations: 166.3 kB / 435.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.178e-05/0.2607, allocations: 20.88 kB / 435.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.544e-05/0.2608, allocations: 36.3 kB / 435.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004447/0.2612, allocations: 273.7 kB / 435.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.2612, allocations: 3.938 kB / 435.4 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.765e-05/0.2612, allocations: 12 kB / 435.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.2613, allocations: 4 kB / 435.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002908/0.2615, allocations: 165.6 kB / 435.6 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001164/0.2627, allocations: 0.9171 MB / 436.5 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000284/0.263, allocations: 164.9 kB / 436.7 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.2631, allocations: 73.7 kB / 436.8 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.762e-05/0.2631, allocations: 3.938 kB / 436.8 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002045/0.2633, allocations: 136.1 kB / 436.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.403e-06/0.2633, allocations: 0 / 436.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004272/0.2638, allocations: 225.3 kB / 437.1 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.379e-05/0.2638, allocations: 89.17 kB / 437.2 MB, free: 432 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.264, allocations: 157.3 kB / 437.4 MB, free: 268 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.439e-05/0.264, allocations: 41.7 kB / 437.4 MB, free: 220 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.2641, allocations: 140.7 kB / 437.5 MB, free: 72 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.593e-05/0.2641, allocations: 63.52 kB / 437.6 MB, free: 8 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.2643, allocations: 81.47 kB / 437.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.2644, allocations: 326.8 kB / 438 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.2645, allocations: 67.97 kB / 438.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.2647, allocations: 136.5 kB / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002695/0.265, allocations: 200.3 kB / 438.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.265, allocations: 0 / 438.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000384/0.2653, allocations: 253.3 kB / 438.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.2654, allocations: 4 kB / 438.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2654, allocations: 4 kB / 438.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.2654, allocations: 4 kB / 438.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.2655, allocations: 39.86 kB / 438.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.2655, allocations: 4 kB / 438.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.2656, allocations: 28.12 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.183e-05/0.2657, allocations: 16 kB / 438.7 MB, free: 14.79 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.0001492/0.2658, allocations: 165.6 kB / 438.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.728e-05/0.2658, allocations: 15.91 kB / 438.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.138e-05/0.2659, allocations: 20.92 kB / 438.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.2659, allocations: 0 / 438.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.2659, allocations: 4 kB / 438.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.2659, allocations: 3.938 kB / 438.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007212/0.2666, allocations: 0.5515 MB / 439.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2666, allocations: 0 / 439.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.802e-05/0.2667, allocations: 15.94 kB / 439.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.2667, allocations: 0 / 439.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.2667, allocations: 11.92 kB / 439.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.2667, allocations: 4 kB / 439.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2667, allocations: 0 / 439.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003065/0.267, allocations: 276.1 kB / 439.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.689e-05/0.267, allocations: 7.953 kB / 439.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.039e-05/0.2671, allocations: 15.92 kB / 439.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.019e-05/0.2672, allocations: 8 kB / 439.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.256e-05/0.2672, allocations: 19.91 kB / 439.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.2672, allocations: 11.98 kB / 439.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.122e-05/0.2673, allocations: 95.27 kB / 440 MB, free: 13.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2673, allocations: 0 / 440 MB, free: 13.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002972/0.2676, allocations: 55.84 kB / 440 MB, free: 13.43 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.0005973/0.2682, allocations: 0.8106 MB / 440.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003134/0.2685, allocations: 172.9 kB / 441 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2685, allocations: 0 / 441 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.2686, allocations: 79.56 kB / 441.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.2689, allocations: 16 kB / 441.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002299/0.2712, allocations: 2.056 MB / 443.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/0.2716, allocations: 0.7326 MB / 443.9 MB, free: 9.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.74e-05/0.2716, allocations: 25.92 kB / 443.9 MB, free: 9.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.2718, allocations: 59.42 kB / 443.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2718, allocations: 4 kB / 444 MB, free: 9.281 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03076/0.3025, allocations: 3.741 MB / 447.7 MB, free: 5.645 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/10.99, allocations: 7.844 kB / 447.7 MB, free: 5.637 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.382003812817857]