Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.0009929/0.0009929, allocations: 83.69 kB / 20.67 MB, free: 3.879 MB / 18.57 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.00138/0.00138, allocations: 170 kB / 23.95 MB, free: 0.6016 MB / 18.57 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 0.9236/0.9236, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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_Variant3,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_1_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 324.5 MB, free: 15.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.122e-05/2.304e-05, allocations: 2.281 kB / 324.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002388/0.002411, allocations: 1.703 MB / 326.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006215/0.003033, allocations: 291.1 kB / 326.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.219e-05/0.003115, allocations: 7.938 kB / 326.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001166/0.003232, allocations: 23.73 kB / 326.6 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.431e-05/0.003276, allocations: 23.75 kB / 326.6 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003433/0.003619, allocations: 119.8 kB / 326.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002422/0.003861, allocations: 283.3 kB / 327 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/0.004073, allocations: 154 kB / 327.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.004177, allocations: 131.8 kB / 327.3 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.4e-05/0.004271, allocations: 75.75 kB / 327.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.565e-05/0.004307, allocations: 24 kB / 327.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.658e-05/0.004363, allocations: 24 kB / 327.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.028e-05/0.004414, allocations: 59.81 kB / 327.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.715e-05/0.004481, allocations: 75.75 kB / 327.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002633/0.004744, allocations: 259.1 kB / 327.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.004747, allocations: 3.984 kB / 327.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.004748, allocations: 0 / 327.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.004754, allocations: 4 kB / 327.8 MB, free: 12.75 MB / 298.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.0005215/0.005275, allocations: 420.3 kB / 328.2 MB, free: 12.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.005314, allocations: 12.03 kB / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.999e-05/0.005364, allocations: 58.73 kB / 328.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001905/0.005555, allocations: 40.77 kB / 328.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002303/0.005785, allocations: 177.4 kB / 328.5 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.937e-05/0.005814, allocations: 20.88 kB / 328.5 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.507e-05/0.005839, allocations: 28.36 kB / 328.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003118/0.006151, allocations: 273.8 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.006162, allocations: 4.125 kB / 328.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.00618, allocations: 12.38 kB / 328.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.058e-06/0.006189, allocations: 8.125 kB / 328.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001992/0.006388, allocations: 169.8 kB / 329 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007555/0.007144, allocations: 0.8712 MB / 329.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001942/0.007338, allocations: 153.4 kB / 330 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.075e-05/0.007409, allocations: 65.7 kB / 330 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.628e-05/0.007425, allocations: 7.938 kB / 330.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001474/0.007572, allocations: 144.8 kB / 330.2 MB, free: 10.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.122e-06/0.007573, allocations: 0 / 330.2 MB, free: 10.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002941/0.007868, allocations: 229.3 kB / 330.4 MB, free: 9.902 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.938e-05/0.007907, allocations: 81.11 kB / 330.5 MB, free: 9.805 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.605e-05/0.007993, allocations: 157.7 kB / 330.7 MB, free: 9.641 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.008015, allocations: 37.7 kB / 330.7 MB, free: 9.598 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.645e-05/0.008081, allocations: 140.7 kB / 330.8 MB, free: 9.453 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.701e-05/0.008118, allocations: 67.5 kB / 330.9 MB, free: 9.387 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.776e-05/0.008186, allocations: 81.64 kB / 331 MB, free: 9.301 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.051e-05/0.008267, allocations: 322.8 kB / 331.3 MB, free: 8.977 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.682e-05/0.008343, allocations: 59.97 kB / 331.3 MB, free: 8.918 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.008449, allocations: 140.5 kB / 331.5 MB, free: 8.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001823/0.008631, allocations: 189.1 kB / 331.7 MB, free: 8.535 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.008635, allocations: 3.938 kB / 331.7 MB, free: 8.531 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002401/0.008875, allocations: 257.3 kB / 331.9 MB, free: 8.273 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.008889, allocations: 8 kB / 331.9 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.008894, allocations: 4 kB / 331.9 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.008907, allocations: 7.984 kB / 331.9 MB, free: 8.254 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.194e-05/0.008998, allocations: 31.92 kB / 332 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.009005, allocations: 4 kB / 332 MB, free: 8.219 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.298e-05/0.009068, allocations: 23.84 kB / 332 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.009082, allocations: 20.22 kB / 332 MB, free: 8.176 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.0001025/0.009185, allocations: 169.6 kB / 332.2 MB, free: 8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.362e-05/0.009199, allocations: 15.95 kB / 332.2 MB, free: 7.984 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.011e-05/0.009229, allocations: 12.94 kB / 332.2 MB, free: 7.973 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-06/0.009232, allocations: 4 kB / 332.2 MB, free: 7.969 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.009238, allocations: 0 / 332.2 MB, free: 7.969 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.009242, allocations: 3.984 kB / 332.2 MB, free: 7.965 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004484/0.009691, allocations: 0.5342 MB / 332.8 MB, free: 7.375 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.009693, allocations: 3.984 kB / 332.8 MB, free: 7.371 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.648e-05/0.009729, allocations: 16 kB / 332.8 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.009731, allocations: 4 kB / 332.8 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-06/0.00974, allocations: 0 / 332.8 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.009743, allocations: 7.938 kB / 332.8 MB, free: 7.344 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.009743, allocations: 0 / 332.8 MB, free: 7.344 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001869/0.00993, allocations: 287.8 kB / 333.1 MB, free: 7.043 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.154e-05/0.009942, allocations: 11.91 kB / 333.1 MB, free: 7.031 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.973e-05/0.009962, allocations: 11.98 kB / 333.1 MB, free: 7.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.492e-05/0.01001, allocations: 4 kB / 333.1 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.564e-05/0.01006, allocations: 23.91 kB / 333.1 MB, free: 6.992 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.01007, allocations: 8 kB / 333.1 MB, free: 6.984 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.88e-05/0.01011, allocations: 103 kB / 333.2 MB, free: 6.887 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01011, allocations: 0 / 333.2 MB, free: 6.887 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001955/0.01031, allocations: 55.81 kB / 333.3 MB, free: 6.832 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: 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.0003915/0.0107, allocations: 0.8096 MB / 334.1 MB, free: 5.996 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002255/0.01092, allocations: 171.6 kB / 334.3 MB, free: 5.828 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.01092, allocations: 4 kB / 334.3 MB, free: 5.824 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.947e-05/0.011, allocations: 64.47 kB / 334.3 MB, free: 5.762 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001958/0.0112, allocations: 27.98 kB / 334.4 MB, free: 5.734 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001445/0.01265, allocations: 2.074 MB / 336.4 MB, free: 3.516 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.79e-05/0.01272, allocations: 125.6 kB / 336.6 MB, free: 3.375 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.463e-05/0.01278, allocations: 25.92 kB / 336.6 MB, free: 3.352 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.668e-05/0.01285, allocations: 60.42 kB / 336.6 MB, free: 3.289 MB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01285, allocations: 0 / 336.6 MB, free: 3.289 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01462/0.02748, allocations: 4.254 MB / 340.9 MB, free: 15.15 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.994/7.022, allocations: 7.938 kB / 340.9 MB, free: 15.14 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_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_Variant3.fmu > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.86091664712876]