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.001763/0.001763, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002337/0.002337, allocations: 210.8 kB / 23.73 MB, free: 4.387 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.483/1.483, allocations: 230.6 MB / 257.5 MB, free: 7.777 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.001653/0.001653, allocations: 51.92 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2793, allocations: 53.37 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002719/0.282, allocations: 1.467 MB / 432.5 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006501/0.2826, allocations: 287.2 kB / 432.8 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.186e-05/0.2827, allocations: 7.938 kB / 432.8 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.2828, allocations: 23.73 kB / 432.8 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.111e-05/0.2829, allocations: 11.81 kB / 432.8 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003829/0.2833, allocations: 123.8 kB / 433 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003134/0.2836, allocations: 267.5 kB / 433.2 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002459/0.2838, allocations: 134.7 kB / 433.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.2839, allocations: 87.7 kB / 433.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000127/0.2841, allocations: 83.59 kB / 433.5 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.437e-05/0.2841, allocations: 24 kB / 433.6 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.82e-05/0.2842, allocations: 27.94 kB / 433.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.253e-05/0.2842, allocations: 55.83 kB / 433.6 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.762e-05/0.2843, allocations: 75.64 kB / 433.7 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002954/0.2846, allocations: 252.6 kB / 434 MB, free: 3.727 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2846, allocations: 0 / 434 MB, free: 3.727 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2846, allocations: 4 kB / 434 MB, free: 3.723 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.2846, allocations: 0 / 434 MB, free: 3.723 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.0006123/0.2852, allocations: 413.1 kB / 434.4 MB, free: 3.289 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.2853, allocations: 8.031 kB / 434.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.394e-05/0.2853, allocations: 58.72 kB / 434.4 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002234/0.2856, allocations: 28.83 kB / 434.5 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002945/0.2858, allocations: 170.2 kB / 434.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.022e-05/0.2859, allocations: 24.81 kB / 434.6 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.103e-05/0.2859, allocations: 24.38 kB / 434.7 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003962/0.2863, allocations: 243.2 kB / 434.9 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.2863, allocations: 3.938 kB / 434.9 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.29e-05/0.2864, allocations: 8 kB / 434.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.2864, allocations: 11.98 kB / 434.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002826/0.2866, allocations: 153.6 kB / 435.1 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009748/0.2876, allocations: 0.6082 MB / 435.7 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002768/0.2879, allocations: 153.3 kB / 435.8 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001181/0.288, allocations: 72.77 kB / 435.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.288, allocations: 7.938 kB / 435.9 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001822/0.2882, allocations: 113 kB / 436 MB, free: 1.512 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.2882, allocations: 0 / 436 MB, free: 1.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000411/0.2886, allocations: 229 kB / 436.3 MB, free: 1.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.2887, allocations: 63.38 kB / 436.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.2888, allocations: 150 kB / 436.5 MB, free: 1.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.509e-05/0.2889, allocations: 37.69 kB / 436.5 MB, free: 1.012 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.289, allocations: 132.8 kB / 436.6 MB, free: 0.875 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.001e-05/0.289, allocations: 59.48 kB / 436.7 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.2891, allocations: 78.02 kB / 436.8 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.2893, allocations: 326.8 kB / 437.1 MB, free: 412 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.2894, allocations: 60.62 kB / 437.1 MB, free: 352 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.2895, allocations: 136.1 kB / 437.3 MB, free: 192 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002606/0.2898, allocations: 175.1 kB / 437.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2898, allocations: 0 / 437.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003807/0.2902, allocations: 249.3 kB / 437.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.2902, allocations: 8 kB / 437.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.932e-06/0.2902, allocations: 0 / 437.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.2902, allocations: 4 kB / 437.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.2904, allocations: 31.86 kB / 437.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.2904, allocations: 4 kB / 437.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.2905, allocations: 31.83 kB / 437.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.2905, allocations: 8 kB / 437.8 MB, free: 15.66 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.0001575/0.2906, allocations: 157.9 kB / 437.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.764e-05/0.2907, allocations: 19.89 kB / 437.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.94e-05/0.2907, allocations: 16.94 kB / 438 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.2907, allocations: 4 kB / 438 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.192e-05/0.2908, allocations: 0 / 438 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.2908, allocations: 0 / 438 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007204/0.2915, allocations: 0.5014 MB / 438.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.2915, allocations: 3.938 kB / 438.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.484e-05/0.2916, allocations: 12 kB / 438.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.2916, allocations: 4 kB / 438.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.834e-05/0.2916, allocations: 11.98 kB / 438.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2916, allocations: 0 / 438.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2916, allocations: 0 / 438.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00031/0.2919, allocations: 278.7 kB / 438.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.956e-05/0.2919, allocations: 15.84 kB / 438.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.758e-05/0.2919, allocations: 7.984 kB / 438.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.234e-05/0.292, allocations: 8 kB / 438.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.575e-05/0.2921, allocations: 27.89 kB / 438.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.24e-05/0.2921, allocations: 8 kB / 438.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.088e-05/0.2922, allocations: 94.27 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2922, allocations: 4 kB / 438.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000284/0.2925, allocations: 47.89 kB / 439 MB, free: 14.38 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.0006256/0.2931, allocations: 0.806 MB / 439.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003189/0.2934, allocations: 151.8 kB / 439.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2934, allocations: 4 kB / 439.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001201/0.2935, allocations: 74 kB / 440 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002812/0.2938, allocations: 32.3 kB / 440 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/0.296, allocations: 1.99 MB / 442 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001183/0.2961, allocations: 112.5 kB / 442.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.53e-05/0.2962, allocations: 25.94 kB / 442.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.2963, allocations: 55.42 kB / 442.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2963, allocations: 3.938 kB / 442.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03027/0.3266, allocations: 4.066 MB / 446.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.43, allocations: 7.312 kB / 446.3 MB, free: 7.027 MB / 350.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.csv --start-time 0 --stop-time 5.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00109737 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.csv","/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] "Error: Could not read variable transition1.enableFire in file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.011727249715477]