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.001292/0.001292, allocations: 103.6 kB / 20.43 MB, free: 1.211 MB / 14.72 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.001445/0.001445, allocations: 187.5 kB / 23.71 MB, free: 4.434 MB / 14.72 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 1.448/1.448, allocations: 225.7 MB / 252.5 MB, free: 12.85 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001683/0.001683, allocations: 47.92 kB / 370.4 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.272, allocations: 52.19 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00304/0.275, allocations: 1.639 MB / 424.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007312/0.2758, allocations: 291.2 kB / 424.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.35e-05/0.2759, allocations: 7.938 kB / 424.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.276, allocations: 27.73 kB / 424.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.781e-05/0.276, allocations: 15.81 kB / 424.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00042/0.2765, allocations: 135.7 kB / 424.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004134/0.2769, allocations: 275.5 kB / 424.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002779/0.2772, allocations: 153.2 kB / 425.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.2773, allocations: 87.72 kB / 425.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001375/0.2774, allocations: 91.52 kB / 425.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.923e-05/0.2774, allocations: 24 kB / 425.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.448e-05/0.2775, allocations: 35.94 kB / 425.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.859e-05/0.2776, allocations: 63.81 kB / 425.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001111/0.2777, allocations: 83.59 kB / 425.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003757/0.2781, allocations: 258.9 kB / 425.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.2781, allocations: 0 / 425.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.2781, allocations: 0 / 425.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.2781, allocations: 4 kB / 425.7 MB, free: 11.23 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.0008302/0.2789, allocations: 433.1 kB / 426.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.279, allocations: 8.031 kB / 426.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.529e-05/0.2791, allocations: 58.73 kB / 426.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.732e-05/0.2791, allocations: 28.8 kB / 426.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003611/0.2795, allocations: 174.2 kB / 426.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.349e-05/0.2795, allocations: 28.8 kB / 426.4 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.586e-05/0.2796, allocations: 24.38 kB / 426.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005429/0.2801, allocations: 273.8 kB / 426.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.2802, allocations: 3.938 kB / 426.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.775e-05/0.2802, allocations: 12 kB / 426.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.2802, allocations: 4 kB / 426.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003358/0.2805, allocations: 169.5 kB / 426.9 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.2817, allocations: 0.8782 MB / 427.8 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002941/0.282, allocations: 161.3 kB / 427.9 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/0.2822, allocations: 77.62 kB / 428 MB, free: 8.758 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.2822, allocations: 4 kB / 428 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002325/0.2824, allocations: 129.1 kB / 428.1 MB, free: 8.609 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.342e-06/0.2824, allocations: 0 / 428.1 MB, free: 8.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005276/0.2829, allocations: 231 kB / 428.4 MB, free: 8.379 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.626e-05/0.283, allocations: 81.11 kB / 428.4 MB, free: 8.281 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.2832, allocations: 153.8 kB / 428.6 MB, free: 8.121 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.427e-05/0.2832, allocations: 49.69 kB / 428.6 MB, free: 8.066 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.2833, allocations: 140.7 kB / 428.8 MB, free: 7.922 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.033e-05/0.2834, allocations: 59.58 kB / 428.8 MB, free: 7.863 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.2835, allocations: 81.62 kB / 428.9 MB, free: 7.777 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.2836, allocations: 330.8 kB / 429.2 MB, free: 7.445 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.2838, allocations: 67.91 kB / 429.3 MB, free: 7.379 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001703/0.2839, allocations: 140.5 kB / 429.4 MB, free: 7.211 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002698/0.2842, allocations: 196.3 kB / 429.6 MB, free: 6.988 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.2842, allocations: 8 kB / 429.6 MB, free: 6.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003974/0.2846, allocations: 258 kB / 429.9 MB, free: 6.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.2846, allocations: 10.25 kB / 429.9 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.2846, allocations: 4 kB / 429.9 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.721e-05/0.2847, allocations: 4 kB / 429.9 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.2848, allocations: 35.91 kB / 430 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.2848, allocations: 4 kB / 430 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.2849, allocations: 31.78 kB / 430 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.571e-05/0.2849, allocations: 8 kB / 430 MB, free: 6.629 MB / 334.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.0001733/0.2851, allocations: 169.7 kB / 430.2 MB, free: 6.453 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.24e-05/0.2851, allocations: 7.953 kB / 430.2 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003546/0.2855, allocations: 202.4 kB / 430.4 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.2855, allocations: 4 kB / 430.4 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2855, allocations: 0 / 430.4 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.2855, allocations: 0 / 430.4 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007684/0.2863, allocations: 0.5587 MB / 430.9 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2863, allocations: 0 / 430.9 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.143e-05/0.2863, allocations: 15.94 kB / 430.9 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.2863, allocations: 3.938 kB / 430.9 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.2864, allocations: 11.98 kB / 431 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.2864, allocations: 0 / 431 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2864, allocations: 7.938 kB / 431 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003519/0.2867, allocations: 288.6 kB / 431.3 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.7e-05/0.2867, allocations: 19.84 kB / 431.3 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.849e-05/0.2868, allocations: 7.938 kB / 431.3 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.88e-05/0.2869, allocations: 15.98 kB / 431.3 MB, free: 5.238 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.03e-05/0.2869, allocations: 19.97 kB / 431.3 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.287, allocations: 4 kB / 431.3 MB, free: 5.215 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.87e-05/0.287, allocations: 99.27 kB / 431.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.287, allocations: 3.938 kB / 431.4 MB, free: 5.113 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003046/0.2873, allocations: 59.81 kB / 431.5 MB, free: 5.055 MB / 334.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: 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.0007453/0.2881, allocations: 0.8339 MB / 432.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003262/0.2884, allocations: 167.8 kB / 432.5 MB, free: 4.027 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2884, allocations: 4 kB / 432.5 MB, free: 4.023 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001306/0.2885, allocations: 76.23 kB / 432.6 MB, free: 3.949 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.2888, allocations: 27.91 kB / 432.6 MB, free: 3.922 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002406/0.2912, allocations: 2.102 MB / 434.7 MB, free: 1.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00014/0.2914, allocations: 121.3 kB / 434.8 MB, free: 1.543 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.654e-05/0.2915, allocations: 25.94 kB / 434.8 MB, free: 1.516 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.2916, allocations: 67.41 kB / 434.9 MB, free: 1.449 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2916, allocations: 0 / 434.9 MB, free: 1.449 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03025/0.3218, allocations: 4.418 MB / 439.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.28, allocations: 0 / 439.3 MB, free: 13.18 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/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: 13.813443555030972]