Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001858/0.001858, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 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.002514/0.002514, allocations: 205.6 kB / 23.72 MB, free: 4.391 MB / 14.72 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 1.594/1.594, allocations: 230.5 MB / 257.4 MB, free: 7.754 MB / 206.1 MB " [Timeout remaining time 178] 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_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002231/0.002231, allocations: 67.89 kB / 377.7 MB, free: 2.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.296, allocations: 53.4 MB / 431.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00374/0.2997, allocations: 1.651 MB / 432.8 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008661/0.3006, allocations: 295.1 kB / 433.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.3007, allocations: 7.938 kB / 433.1 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001541/0.3009, allocations: 23.69 kB / 433.1 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.297e-05/0.3009, allocations: 19.8 kB / 433.1 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004563/0.3014, allocations: 119.8 kB / 433.2 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004171/0.3018, allocations: 275.5 kB / 433.5 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003322/0.3021, allocations: 169.1 kB / 433.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001444/0.3023, allocations: 91.72 kB / 433.7 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.3024, allocations: 91.52 kB / 433.8 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.221e-05/0.3025, allocations: 24 kB / 433.9 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.638e-05/0.3026, allocations: 27.94 kB / 433.9 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.98e-05/0.3026, allocations: 55.84 kB / 433.9 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.3028, allocations: 87.56 kB / 434 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000369/0.3031, allocations: 258.9 kB / 434.3 MB, free: 3.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.3031, allocations: 3.984 kB / 434.3 MB, free: 3.289 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3031, allocations: 4 kB / 434.3 MB, free: 3.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.353e-06/0.3031, allocations: 0 / 434.3 MB, free: 3.285 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.000752/0.3039, allocations: 421.2 kB / 434.7 MB, free: 2.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.3039, allocations: 15.98 kB / 434.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.826e-05/0.304, allocations: 58.72 kB / 434.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002137/0.3042, allocations: 36.78 kB / 434.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.3045, allocations: 178.2 kB / 435 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.693e-05/0.3046, allocations: 20.88 kB / 435 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.8e-05/0.3046, allocations: 28.38 kB / 435 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004537/0.3051, allocations: 269.7 kB / 435.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.3051, allocations: 7.938 kB / 435.3 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.762e-05/0.3051, allocations: 15.94 kB / 435.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.3051, allocations: 4 kB / 435.3 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002965/0.3054, allocations: 161.6 kB / 435.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001244/0.3067, allocations: 0.8703 MB / 436.3 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003219/0.307, allocations: 164.4 kB / 436.5 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/0.3071, allocations: 69.78 kB / 436.6 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.3071, allocations: 0 / 436.6 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002344/0.3074, allocations: 148 kB / 436.7 MB, free: 0.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 4.027e-06/0.3074, allocations: 3.984 kB / 436.7 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004844/0.3079, allocations: 217.3 kB / 436.9 MB, free: 456 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.008e-05/0.308, allocations: 89.09 kB / 437 MB, free: 348 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.3081, allocations: 157.6 kB / 437.2 MB, free: 180 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.872e-05/0.3081, allocations: 37.7 kB / 437.2 MB, free: 136 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.3083, allocations: 137 kB / 437.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.375e-05/0.3083, allocations: 71.52 kB / 437.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.657e-05/0.3084, allocations: 69.69 kB / 437.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.3086, allocations: 334.5 kB / 437.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.3087, allocations: 71.88 kB / 437.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.3089, allocations: 136.5 kB / 438 MB, free: 15.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000266/0.3091, allocations: 196.2 kB / 438.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3091, allocations: 4 kB / 438.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003767/0.3095, allocations: 249.3 kB / 438.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.3095, allocations: 8 kB / 438.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.3095, allocations: 4 kB / 438.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.3095, allocations: 4 kB / 438.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.3097, allocations: 35.91 kB / 438.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.3097, allocations: 8.219 kB / 438.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.3098, allocations: 31.78 kB / 438.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.506e-05/0.3098, allocations: 16 kB / 438.6 MB, free: 14.7 MB / 350.1 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.000172/0.31, allocations: 154.4 kB / 438.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/0.31, allocations: 15.91 kB / 438.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.65e-05/0.3101, allocations: 16.94 kB / 438.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3101, allocations: 4 kB / 438.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.3101, allocations: 0 / 438.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.729e-06/0.3101, allocations: 7.984 kB / 438.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007424/0.3108, allocations: 0.5282 MB / 439.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3108, allocations: 4 kB / 439.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.315e-05/0.3109, allocations: 27.86 kB / 439.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.3109, allocations: 0 / 439.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.3109, allocations: 7.938 kB / 439.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.3109, allocations: 4 kB / 439.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3109, allocations: 0 / 439.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003309/0.3113, allocations: 272.2 kB / 439.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.416e-05/0.3113, allocations: 19.84 kB / 439.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.919e-05/0.3113, allocations: 11.92 kB / 439.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.54e-05/0.3114, allocations: 8 kB / 439.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.631e-05/0.3115, allocations: 23.97 kB / 439.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.3115, allocations: 4 kB / 439.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.013e-05/0.3116, allocations: 99.27 kB / 439.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3116, allocations: 0 / 439.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003043/0.3119, allocations: 55.88 kB / 439.8 MB, free: 13.36 MB / 350.1 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,step.active,transition1.enableFire,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.000654/0.3125, allocations: 0.8184 MB / 440.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003437/0.3129, allocations: 180.6 kB / 440.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3129, allocations: 4.188 kB / 440.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001302/0.313, allocations: 71.78 kB / 440.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.3133, allocations: 27.91 kB / 440.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002683/0.316, allocations: 2.066 MB / 443 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001542/0.3162, allocations: 129.6 kB / 443.1 MB, free: 9.879 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.203e-05/0.3162, allocations: 17.95 kB / 443.1 MB, free: 9.859 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.3164, allocations: 63.41 kB / 443.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3164, allocations: 0 / 443.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03008/0.3464, allocations: 4.161 MB / 447.3 MB, free: 5.754 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.26, allocations: 7.312 kB / 447.3 MB, free: 5.75 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.94500786671415]