Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.001634/0.001634, allocations: 113.1 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.001668/0.001668, allocations: 215.8 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.497/1.497, allocations: 230.6 MB / 257.5 MB, free: 7.992 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,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 47.92 kB / 377.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2636, allocations: 53.36 MB / 431.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002783/0.2664, allocations: 1.512 MB / 432.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007366/0.2671, allocations: 279.2 kB / 432.9 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.891e-05/0.2672, allocations: 7.938 kB / 432.9 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.2673, allocations: 27.67 kB / 432.9 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.87e-05/0.2674, allocations: 19.8 kB / 432.9 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004059/0.2678, allocations: 115.8 kB / 433.1 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00034/0.2681, allocations: 267.5 kB / 433.3 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002814/0.2684, allocations: 138.6 kB / 433.5 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.2685, allocations: 83.77 kB / 433.5 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.2687, allocations: 99.53 kB / 433.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.198e-05/0.2687, allocations: 24 kB / 433.7 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.196e-05/0.2688, allocations: 35.92 kB / 433.7 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.576e-05/0.2689, allocations: 51.89 kB / 433.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.269, allocations: 95.53 kB / 433.8 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003368/0.2693, allocations: 247.3 kB / 434.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2693, allocations: 0 / 434.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2693, allocations: 4 kB / 434.1 MB, free: 3.891 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.2693, allocations: 0 / 434.1 MB, free: 3.891 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006754/0.27, allocations: 417 kB / 434.5 MB, free: 3.453 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.2701, allocations: 8.031 kB / 434.5 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.712e-05/0.2701, allocations: 54.73 kB / 434.6 MB, free: 3.383 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002509/0.2704, allocations: 40.77 kB / 434.6 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000319/0.2707, allocations: 170.2 kB / 434.8 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.02e-05/0.2707, allocations: 24.88 kB / 434.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.247e-05/0.2708, allocations: 24.38 kB / 434.8 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004276/0.2712, allocations: 235.2 kB / 435 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.2712, allocations: 3.938 kB / 435 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.415e-05/0.2712, allocations: 8 kB / 435 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.2713, allocations: 8 kB / 435.1 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003213/0.2716, allocations: 161.6 kB / 435.2 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.2726, allocations: 0.6588 MB / 435.9 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000314/0.2729, allocations: 158.8 kB / 436 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.2731, allocations: 64.83 kB / 436.1 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.2731, allocations: 7.938 kB / 436.1 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002107/0.2733, allocations: 117 kB / 436.2 MB, free: 1.617 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.814e-06/0.2733, allocations: 0 / 436.2 MB, free: 1.617 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004807/0.2738, allocations: 221 kB / 436.4 MB, free: 1.398 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.2738, allocations: 55.41 kB / 436.5 MB, free: 1.332 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001605/0.274, allocations: 150 kB / 436.6 MB, free: 1.176 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.274, allocations: 37.7 kB / 436.7 MB, free: 1.133 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.2741, allocations: 128.8 kB / 436.8 MB, free: 1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.948e-05/0.2742, allocations: 71.45 kB / 436.9 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.2743, allocations: 78.02 kB / 436.9 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.2745, allocations: 326.8 kB / 437.3 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.2746, allocations: 60.62 kB / 437.3 MB, free: 468 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.2748, allocations: 128.1 kB / 437.4 MB, free: 316 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002543/0.275, allocations: 179.1 kB / 437.6 MB, free: 112 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.275, allocations: 0 / 437.6 MB, free: 112 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000394/0.2754, allocations: 249.2 kB / 437.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.2754, allocations: 8 kB / 437.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2754, allocations: 0 / 437.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.2755, allocations: 4 kB / 437.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.2756, allocations: 27.92 kB / 437.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.2756, allocations: 4 kB / 437.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.435e-05/0.2757, allocations: 32 kB / 437.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.152e-05/0.2757, allocations: 16 kB / 437.9 MB, free: 15.77 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.000165/0.2759, allocations: 157.7 kB / 438.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.916e-05/0.2759, allocations: 19.91 kB / 438.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.041e-05/0.276, allocations: 12.94 kB / 438.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.276, allocations: 4 kB / 438.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.276, allocations: 0 / 438.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.276, allocations: 3.984 kB / 438.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007069/0.2767, allocations: 0.5132 MB / 438.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.2767, allocations: 0 / 438.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.516e-05/0.2768, allocations: 23.92 kB / 438.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2768, allocations: 0 / 438.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.2768, allocations: 4 kB / 438.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.2768, allocations: 0 / 438.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2768, allocations: 0 / 438.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003638/0.2771, allocations: 278.6 kB / 439 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.131e-05/0.2772, allocations: 19.89 kB / 439 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.084e-05/0.2772, allocations: 0 / 439 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.413e-05/0.2773, allocations: 11.98 kB / 439 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.088e-05/0.2774, allocations: 23.91 kB / 439 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.2774, allocations: 8 kB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.837e-05/0.2774, allocations: 98.39 kB / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2774, allocations: 0 / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002846/0.2777, allocations: 51.84 kB / 439.2 MB, free: 14.48 MB / 350.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (24): * Single equations (assignments): 20 * 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.0006507/0.2784, allocations: 0.7982 MB / 440 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003189/0.2787, allocations: 159.8 kB / 440.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2787, allocations: 0 / 440.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001253/0.2788, allocations: 77.94 kB / 440.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002944/0.2791, allocations: 24.38 kB / 440.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002303/0.2814, allocations: 1.995 MB / 442.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004111/0.2818, allocations: 0.7323 MB / 442.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.297e-05/0.2819, allocations: 21.94 kB / 443 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.282, allocations: 55.42 kB / 443 MB, free: 10.45 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.282, allocations: 0 / 443 MB, free: 10.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0306/0.3126, allocations: 3.677 MB / 446.7 MB, free: 6.906 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.19, allocations: 12.66 kB / 446.7 MB, free: 6.895 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.68793050502427]