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.001255/0.001255, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001377/0.001377, allocations: 204.5 kB / 23.73 MB, free: 4.379 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.445/1.445, allocations: 230.6 MB / 257.5 MB, free: 7.789 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_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 0.001528/0.001528, allocations: 43.94 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2765, allocations: 53.37 MB / 431.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003268/0.2797, allocations: 1.693 MB / 432.8 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008508/0.2806, allocations: 291.2 kB / 433 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.2807, allocations: 11.94 kB / 433 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001597/0.2809, allocations: 23.67 kB / 433.1 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.511e-05/0.2809, allocations: 23.8 kB / 433.1 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004421/0.2814, allocations: 127.8 kB / 433.2 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003564/0.2817, allocations: 271.5 kB / 433.5 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003025/0.282, allocations: 153.7 kB / 433.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.2822, allocations: 107.6 kB / 433.7 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.2823, allocations: 95.55 kB / 433.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.214e-05/0.2823, allocations: 20 kB / 433.9 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.272e-05/0.2824, allocations: 28 kB / 433.9 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.087e-05/0.2825, allocations: 59.81 kB / 433.9 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.588e-05/0.2826, allocations: 87.58 kB / 434 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003229/0.2829, allocations: 258.8 kB / 434.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2829, allocations: 0 / 434.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2829, allocations: 0 / 434.3 MB, free: 3.406 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.2829, allocations: 0 / 434.3 MB, free: 3.406 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.0006749/0.2836, allocations: 421.2 kB / 434.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.2836, allocations: 16.03 kB / 434.7 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.458e-05/0.2837, allocations: 58.73 kB / 434.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002446/0.2839, allocations: 36.77 kB / 434.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.2843, allocations: 166.3 kB / 435 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.752e-05/0.2843, allocations: 24.81 kB / 435 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.868e-05/0.2844, allocations: 32.31 kB / 435 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004744/0.2848, allocations: 269.7 kB / 435.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.2849, allocations: 7.938 kB / 435.3 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.468e-05/0.2849, allocations: 8 kB / 435.3 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.2849, allocations: 8 kB / 435.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003039/0.2852, allocations: 169.6 kB / 435.5 MB, free: 2.129 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.2864, allocations: 0.8625 MB / 436.3 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002993/0.2867, allocations: 161.3 kB / 436.5 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.2868, allocations: 77.7 kB / 436.6 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.2868, allocations: 0 / 436.6 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000229/0.287, allocations: 134.7 kB / 436.7 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.287, allocations: 4 kB / 436.7 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004397/0.2875, allocations: 225 kB / 436.9 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.463e-05/0.2876, allocations: 89.09 kB / 437 MB, free: 480 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001407/0.2877, allocations: 153.7 kB / 437.2 MB, free: 316 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.509e-05/0.2877, allocations: 37.7 kB / 437.2 MB, free: 272 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.2878, allocations: 144.8 kB / 437.3 MB, free: 120 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.486e-05/0.2879, allocations: 59.52 kB / 437.4 MB, free: 60 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.288, allocations: 85.42 kB / 437.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.2882, allocations: 330.8 kB / 437.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.2883, allocations: 63.97 kB / 437.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001839/0.2885, allocations: 140.5 kB / 438 MB, free: 15.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002623/0.2887, allocations: 193 kB / 438.2 MB, free: 15.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2887, allocations: 0 / 438.2 MB, free: 15.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000386/0.2891, allocations: 257.3 kB / 438.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.2891, allocations: 4 kB / 438.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.2891, allocations: 4 kB / 438.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.2892, allocations: 7.984 kB / 438.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.2893, allocations: 39.86 kB / 438.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.2893, allocations: 7.938 kB / 438.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.2894, allocations: 31.78 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/0.2894, allocations: 8 kB / 438.5 MB, free: 14.83 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.0001549/0.2896, allocations: 166 kB / 438.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.2896, allocations: 7.953 kB / 438.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.046e-05/0.2897, allocations: 20.94 kB / 438.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.2897, allocations: 0 / 438.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.2897, allocations: 4 kB / 438.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2897, allocations: 7.922 kB / 438.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007149/0.2904, allocations: 0.5275 MB / 439.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.2904, allocations: 3.984 kB / 439.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.16e-05/0.2905, allocations: 15.94 kB / 439.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.2905, allocations: 4 kB / 439.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.796e-05/0.2905, allocations: 11.94 kB / 439.3 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2905, allocations: 0 / 439.3 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.2905, allocations: 3.984 kB / 439.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003153/0.2908, allocations: 276.1 kB / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.271e-05/0.2908, allocations: 19.84 kB / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.069e-05/0.2909, allocations: 15.91 kB / 439.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.967e-05/0.2909, allocations: 4 kB / 439.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.783e-05/0.291, allocations: 19.97 kB / 439.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.291, allocations: 8 kB / 439.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.802e-05/0.2911, allocations: 99.25 kB / 439.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2911, allocations: 4 kB / 439.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.2914, allocations: 51.89 kB / 439.8 MB, free: 13.48 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,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.0006097/0.292, allocations: 0.8134 MB / 440.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003384/0.2923, allocations: 171.7 kB / 440.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2923, allocations: 0 / 440.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001274/0.2925, allocations: 72.42 kB / 440.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.2928, allocations: 24.05 kB / 440.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002338/0.2951, allocations: 2.049 MB / 442.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001332/0.2952, allocations: 121.6 kB / 443 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.842e-05/0.2953, allocations: 21.94 kB / 443.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.2954, allocations: 59.42 kB / 443.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2954, allocations: 0 / 443.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02992/0.3254, allocations: 4.186 MB / 447.3 MB, free: 5.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/10.96, allocations: 14.45 kB / 447.3 MB, free: 5.918 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/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: 13.488157076004427]