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.0012/0.0012, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.001016/0.001016, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8855/0.8855, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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 1.503e-06/1.503e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.284e-05/1.435e-05, allocations: 2.281 kB / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001919/0.001933, allocations: 1.696 MB / 326.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000499/0.002432, allocations: 299.1 kB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.366e-05/0.002516, allocations: 4 kB / 326.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001171/0.002633, allocations: 27.61 kB / 326.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.275e-05/0.002676, allocations: 23.8 kB / 326.5 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002926/0.002968, allocations: 119.7 kB / 326.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002236/0.003192, allocations: 275.5 kB / 326.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/0.003402, allocations: 150 kB / 327.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000107/0.003509, allocations: 135.8 kB / 327.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/0.003609, allocations: 79.69 kB / 327.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.093e-05/0.00364, allocations: 24 kB / 327.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.49e-05/0.003695, allocations: 24 kB / 327.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.704e-05/0.003752, allocations: 55.83 kB / 327.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.681e-05/0.003809, allocations: 67.81 kB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002112/0.00402, allocations: 263.1 kB / 327.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.004021, allocations: 3.938 kB / 327.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.004022, allocations: 0 / 327.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.027e-06/0.004026, allocations: 4 kB / 327.7 MB, free: 12.7 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.0004442/0.00447, allocations: 432.9 kB / 328.1 MB, free: 12.24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.004504, allocations: 11.98 kB / 328.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.443e-05/0.004548, allocations: 54.73 kB / 328.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.004673, allocations: 32.78 kB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001805/0.004854, allocations: 165.5 kB / 328.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/0.004882, allocations: 28.86 kB / 328.4 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.413e-05/0.004906, allocations: 28.38 kB / 328.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002825/0.005188, allocations: 269.8 kB / 328.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.005199, allocations: 8.172 kB / 328.7 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.005215, allocations: 12.38 kB / 328.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.005223, allocations: 12.12 kB / 328.7 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004255/0.005648, allocations: 161.9 kB / 328.9 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007108/0.006359, allocations: 0.8667 MB / 329.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001867/0.006546, allocations: 161.4 kB / 329.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.012e-05/0.006616, allocations: 69.69 kB / 330 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.006632, allocations: 3.938 kB / 330 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001432/0.006775, allocations: 149.7 kB / 330.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.253e-06/0.006776, allocations: 4 kB / 330.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.000292/0.007068, allocations: 221.2 kB / 330.4 MB, free: 9.848 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.007107, allocations: 85.11 kB / 330.4 MB, free: 9.746 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.668e-05/0.007184, allocations: 145.7 kB / 330.6 MB, free: 9.594 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.007204, allocations: 37.7 kB / 330.6 MB, free: 9.551 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.171e-05/0.007275, allocations: 152.7 kB / 330.8 MB, free: 9.395 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.08e-05/0.007306, allocations: 55.53 kB / 330.8 MB, free: 9.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.537e-05/0.007372, allocations: 81.64 kB / 330.9 MB, free: 9.254 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.533e-05/0.007447, allocations: 326.8 kB / 331.2 MB, free: 8.926 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.458e-05/0.007521, allocations: 68.03 kB / 331.3 MB, free: 8.859 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001023/0.007624, allocations: 144.5 kB / 331.4 MB, free: 8.688 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001647/0.007788, allocations: 184.4 kB / 331.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.007793, allocations: 7.938 kB / 331.6 MB, free: 8.469 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002276/0.00802, allocations: 257.3 kB / 331.9 MB, free: 8.211 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.058e-05/0.008031, allocations: 4 kB / 331.9 MB, free: 8.207 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.008037, allocations: 4 kB / 331.9 MB, free: 8.203 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.008048, allocations: 4 kB / 331.9 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.131e-05/0.008129, allocations: 35.86 kB / 331.9 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.008135, allocations: 4 kB / 331.9 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.846e-05/0.008194, allocations: 32.12 kB / 331.9 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.008206, allocations: 11.98 kB / 332 MB, free: 8.117 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.0001035/0.008309, allocations: 165.6 kB / 332.1 MB, free: 7.945 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.202e-05/0.008321, allocations: 7.953 kB / 332.1 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.967e-05/0.008351, allocations: 24.92 kB / 332.2 MB, free: 7.914 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.008354, allocations: 4 kB / 332.2 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.008358, allocations: 0 / 332.2 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.008362, allocations: 0 / 332.2 MB, free: 7.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004197/0.008781, allocations: 0.5316 MB / 332.7 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.008782, allocations: 4 kB / 332.7 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.406e-05/0.008816, allocations: 15.94 kB / 332.7 MB, free: 7.301 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.008819, allocations: 0 / 332.7 MB, free: 7.301 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.008831, allocations: 11.98 kB / 332.7 MB, free: 7.289 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.008832, allocations: 0 / 332.7 MB, free: 7.289 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.008833, allocations: 3.938 kB / 332.7 MB, free: 7.285 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001834/0.009016, allocations: 280.8 kB / 333 MB, free: 6.992 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.325e-05/0.009029, allocations: 19.89 kB / 333 MB, free: 6.973 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.551e-05/0.009045, allocations: 0 / 333 MB, free: 6.973 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.749e-05/0.009092, allocations: 11.94 kB / 333 MB, free: 6.961 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.33e-05/0.009146, allocations: 27.89 kB / 333.1 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.009153, allocations: 8 kB / 333.1 MB, free: 6.926 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.326e-05/0.009196, allocations: 102.8 kB / 333.2 MB, free: 6.828 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009197, allocations: 0 / 333.2 MB, free: 6.828 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001846/0.009381, allocations: 55.83 kB / 333.2 MB, free: 6.773 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.0003369/0.009718, allocations: 0.8107 MB / 334 MB, free: 5.934 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001933/0.009911, allocations: 164.2 kB / 334.2 MB, free: 5.773 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.532e-06/0.009913, allocations: 3.938 kB / 334.2 MB, free: 5.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.76e-05/0.009991, allocations: 75.91 kB / 334.3 MB, free: 5.695 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002045/0.01019, allocations: 31.92 kB / 334.3 MB, free: 5.664 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00165/0.01184, allocations: 2.068 MB / 336.4 MB, free: 3.449 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.895e-05/0.01192, allocations: 125.6 kB / 336.5 MB, free: 3.309 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.159e-05/0.01198, allocations: 17.95 kB / 336.5 MB, free: 3.293 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.081e-05/0.01206, allocations: 72.45 kB / 336.6 MB, free: 3.219 MB / 298.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01206, allocations: 0 / 336.6 MB, free: 3.219 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/0.02995, allocations: 4.243 MB / 340.8 MB, free: 15.08 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.669/6.699, allocations: 4 kB / 340.8 MB, free: 15.08 MB / 314.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_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.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_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.468807415105402]