Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9422/0.9422, allocations: 173.4 MB / 200.4 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.625e-05/2.78e-05, allocations: 9.453 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002151/0.002179, allocations: 1.629 MB / 320 MB, free: 4.73 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005308/0.00271, allocations: 295.1 kB / 320.3 MB, free: 4.441 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.599e-05/0.002796, allocations: 7.938 kB / 320.3 MB, free: 4.434 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001233/0.002919, allocations: 27.67 kB / 320.4 MB, free: 4.406 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.631e-05/0.002956, allocations: 15.75 kB / 320.4 MB, free: 4.391 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003698/0.003325, allocations: 131.7 kB / 320.5 MB, free: 4.262 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002407/0.003566, allocations: 271.5 kB / 320.8 MB, free: 3.996 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000238/0.003804, allocations: 159.6 kB / 320.9 MB, free: 3.836 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.003921, allocations: 139.8 kB / 321.1 MB, free: 3.699 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001008/0.004022, allocations: 71.77 kB / 321.1 MB, free: 3.629 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.066e-05/0.004052, allocations: 24 kB / 321.2 MB, free: 3.605 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.645e-05/0.004119, allocations: 31.98 kB / 321.2 MB, free: 3.574 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.597e-05/0.004175, allocations: 59.8 kB / 321.2 MB, free: 3.516 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.356e-05/0.004238, allocations: 79.69 kB / 321.3 MB, free: 3.438 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002495/0.004488, allocations: 267.1 kB / 321.6 MB, free: 3.176 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.534e-06/0.004491, allocations: 4 kB / 321.6 MB, free: 3.172 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.004492, allocations: 0 / 321.6 MB, free: 3.172 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.004497, allocations: 0 / 321.6 MB, free: 3.172 MB / 282.7 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.0005259/0.005023, allocations: 421.2 kB / 322 MB, free: 2.727 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.005059, allocations: 8.922 kB / 322 MB, free: 2.719 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.898e-05/0.005108, allocations: 62.72 kB / 322.1 MB, free: 2.648 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.383e-05/0.005152, allocations: 28.8 kB / 322.1 MB, free: 2.621 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000233/0.005385, allocations: 173.5 kB / 322.3 MB, free: 2.426 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.005413, allocations: 20.88 kB / 322.3 MB, free: 2.406 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.694e-05/0.00544, allocations: 36.31 kB / 322.3 MB, free: 2.371 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003539/0.005794, allocations: 273.8 kB / 322.6 MB, free: 2.078 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.005805, allocations: 192 / 322.6 MB, free: 2.078 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.005823, allocations: 12.38 kB / 322.6 MB, free: 2.066 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.005831, allocations: 12.12 kB / 322.6 MB, free: 2.055 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002069/0.006038, allocations: 165.8 kB / 322.8 MB, free: 1.895 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008168/0.006855, allocations: 0.8745 MB / 323.7 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002229/0.007078, allocations: 157.4 kB / 323.8 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.205e-05/0.00716, allocations: 77.56 kB / 323.9 MB, free: 0.707 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.007182, allocations: 11.94 kB / 323.9 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001625/0.007344, allocations: 133.1 kB / 324 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.007346, allocations: 0 / 324 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003366/0.007683, allocations: 232 kB / 324.2 MB, free: 324 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/0.007737, allocations: 89.09 kB / 324.3 MB, free: 216 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.771e-05/0.007835, allocations: 161.6 kB / 324.5 MB, free: 44 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.007855, allocations: 33.7 kB / 324.5 MB, free: 4 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.28e-05/0.007948, allocations: 132.8 kB / 324.7 MB, free: 15.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.777e-05/0.007986, allocations: 71.47 kB / 324.7 MB, free: 15.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.213e-05/0.008058, allocations: 85.8 kB / 324.8 MB, free: 15.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.266e-05/0.00815, allocations: 326.8 kB / 325.1 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.076e-05/0.008231, allocations: 59.97 kB / 325.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.008346, allocations: 152 kB / 325.3 MB, free: 15.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001914/0.008538, allocations: 188.5 kB / 325.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.008542, allocations: 7.938 kB / 325.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002554/0.008797, allocations: 253.3 kB / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.008811, allocations: 4 kB / 325.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.008819, allocations: 7.984 kB / 325.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.008834, allocations: 7.938 kB / 325.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.727e-05/0.008932, allocations: 40.2 kB / 325.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.00894, allocations: 4 kB / 325.8 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.631e-05/0.008996, allocations: 31.72 kB / 325.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.009017, allocations: 12 kB / 325.9 MB, free: 14.56 MB / 298.7 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.000108/0.009125, allocations: 157.7 kB / 326 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.651e-05/0.009142, allocations: 19.91 kB / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000237/0.009379, allocations: 203 kB / 326.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.009383, allocations: 4 kB / 326.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.009387, allocations: 0 / 326.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.009392, allocations: 4 kB / 326.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004833/0.009876, allocations: 0.5512 MB / 326.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.009877, allocations: 0 / 326.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.049e-05/0.009918, allocations: 12 kB / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.009921, allocations: 0 / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.009936, allocations: 11.98 kB / 326.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.177e-06/0.00994, allocations: 3.938 kB / 326.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.009943, allocations: 3.938 kB / 326.8 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002065/0.01015, allocations: 284.2 kB / 327.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.656e-05/0.01017, allocations: 19.84 kB / 327.1 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.01019, allocations: 8 kB / 327.1 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.83e-05/0.01024, allocations: 15.92 kB / 327.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.171e-05/0.0103, allocations: 23.91 kB / 327.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.01031, allocations: 4 kB / 327.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.224e-05/0.01035, allocations: 106.6 kB / 327.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01035, allocations: 0 / 327.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002075/0.01056, allocations: 55.84 kB / 327.3 MB, free: 13 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0004679/0.01103, allocations: 0.8345 MB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002225/0.01125, allocations: 175.9 kB / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.01125, allocations: 0 / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.342e-05/0.01133, allocations: 75.91 kB / 328.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002257/0.01156, allocations: 27.92 kB / 328.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001584/0.01314, allocations: 2.091 MB / 330.5 MB, free: 9.629 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.137e-05/0.01323, allocations: 125.3 kB / 330.7 MB, free: 9.484 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.47e-05/0.0133, allocations: 29.94 kB / 330.7 MB, free: 9.453 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.381e-05/0.01339, allocations: 68.41 kB / 330.8 MB, free: 9.387 MB / 298.7 MB Notification: Performance of SimCode: time 9.82e-07/0.01339, allocations: 0 / 330.8 MB, free: 9.387 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01814/0.03153, allocations: 4.532 MB / 335.3 MB, free: 4.996 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.839/6.87, allocations: 6.984 kB / 335.3 MB, free: 4.992 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_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_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable transition1.enableFire in file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.796386692672968]