Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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.001662/0.001662, allocations: 107.6 kB / 21.18 MB, free: 472 kB / 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.002319/0.002319, allocations: 208 kB / 24.47 MB, free: 3.801 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.475/1.475, allocations: 207.7 MB / 235.3 MB, free: 9.82 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002763/0.002763, allocations: 60.33 kB / 347.2 MB, free: 9.934 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3768/0.3795, allocations: 49.17 MB / 396.3 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004101/0.3836, allocations: 1.626 MB / 398 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008363/0.3845, allocations: 265.4 kB / 398.2 MB, free: 7.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.3846, allocations: 6.719 kB / 398.2 MB, free: 7.594 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00014/0.3847, allocations: 26.3 kB / 398.2 MB, free: 7.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.852e-05/0.3848, allocations: 19.22 kB / 398.3 MB, free: 7.559 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004726/0.3852, allocations: 127.7 kB / 398.4 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003705/0.3856, allocations: 271 kB / 398.7 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003209/0.3859, allocations: 162.2 kB / 398.8 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.386, allocations: 88.92 kB / 398.9 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/0.3862, allocations: 87.84 kB / 399 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.947e-05/0.3862, allocations: 24.47 kB / 399 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.275e-05/0.3863, allocations: 33.48 kB / 399 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.238e-05/0.3864, allocations: 55.02 kB / 399.1 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.751e-05/0.3865, allocations: 91.3 kB / 399.2 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000384/0.3869, allocations: 252.5 kB / 399.4 MB, free: 6.996 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3869, allocations: 0 / 399.4 MB, free: 6.996 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3869, allocations: 3.938 kB / 399.4 MB, free: 6.992 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.767e-06/0.3869, allocations: 5.312 kB / 399.4 MB, free: 6.988 MB / 318.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.0006736/0.3876, allocations: 417.2 kB / 399.8 MB, free: 6.637 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.616e-05/0.3876, allocations: 13.89 kB / 399.9 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.143e-05/0.3877, allocations: 61.19 kB / 399.9 MB, free: 6.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.168e-05/0.3878, allocations: 24.7 kB / 399.9 MB, free: 6.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000423/0.3882, allocations: 172.4 kB / 400.1 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.128e-05/0.3883, allocations: 21.81 kB / 400.1 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.698e-05/0.3883, allocations: 31.94 kB / 400.2 MB, free: 6.383 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005493/0.3889, allocations: 271.2 kB / 400.4 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.3889, allocations: 3.938 kB / 400.4 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.896e-05/0.3889, allocations: 15.08 kB / 400.5 MB, free: 6.223 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.3889, allocations: 6.875 kB / 400.5 MB, free: 6.223 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000343/0.3893, allocations: 167.6 kB / 400.6 MB, free: 6.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.3904, allocations: 0.8834 MB / 401.5 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002702/0.3907, allocations: 140.8 kB / 401.6 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.3908, allocations: 61.89 kB / 401.7 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.495e-05/0.3908, allocations: 7.359 kB / 401.7 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002036/0.391, allocations: 123.6 kB / 401.8 MB, free: 5.242 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.391, allocations: 5.156 kB / 401.8 MB, free: 5.238 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004689/0.3915, allocations: 211.1 kB / 402 MB, free: 5.148 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/0.3915, allocations: 59.72 kB / 402.1 MB, free: 5.082 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.3917, allocations: 163.4 kB / 402.3 MB, free: 4.949 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.489e-05/0.3917, allocations: 34.89 kB / 402.3 MB, free: 4.914 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.843e-05/0.3918, allocations: 144.6 kB / 402.4 MB, free: 4.785 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.624e-05/0.3918, allocations: 61.03 kB / 402.5 MB, free: 4.738 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.3919, allocations: 78.69 kB / 402.6 MB, free: 4.691 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.457e-05/0.392, allocations: 332.9 kB / 402.9 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.3921, allocations: 67.34 kB / 403 MB, free: 4.344 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.3923, allocations: 137.4 kB / 403.1 MB, free: 4.238 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002276/0.3925, allocations: 186.7 kB / 403.3 MB, free: 4.098 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3925, allocations: 0 / 403.3 MB, free: 4.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003635/0.3929, allocations: 255.9 kB / 403.5 MB, free: 3.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.3929, allocations: 14.47 kB / 403.5 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.3929, allocations: 2.188 kB / 403.5 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.3929, allocations: 4.375 kB / 403.5 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.393, allocations: 28.73 kB / 403.6 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.3931, allocations: 7.422 kB / 403.6 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.611e-05/0.3932, allocations: 32.72 kB / 403.6 MB, free: 3.945 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.942e-05/0.3932, allocations: 14.28 kB / 403.6 MB, free: 3.941 MB / 318.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001228/0.3933, allocations: 164.2 kB / 403.8 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.363e-05/0.3933, allocations: 10.64 kB / 403.8 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003329/0.3937, allocations: 198.8 kB / 404 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.3937, allocations: 5.719 kB / 404 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.3937, allocations: 1.031 kB / 404 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.3937, allocations: 0 / 404 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006584/0.3943, allocations: 0.5476 MB / 404.5 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3943, allocations: 0.6562 kB / 404.6 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.475e-05/0.3944, allocations: 21.73 kB / 404.6 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.3944, allocations: 5.156 kB / 404.6 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.3944, allocations: 2.938 kB / 404.6 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.3944, allocations: 5.125 kB / 404.6 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3944, allocations: 0 / 404.6 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002885/0.3947, allocations: 276.4 kB / 404.9 MB, free: 3.074 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.097e-05/0.3947, allocations: 17.5 kB / 404.9 MB, free: 3.062 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.687e-05/0.3948, allocations: 7.547 kB / 404.9 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.357e-05/0.3949, allocations: 8.906 kB / 404.9 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.636e-05/0.395, allocations: 20.75 kB / 404.9 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.395, allocations: 5.75 kB / 404.9 MB, free: 3.051 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.058e-05/0.395, allocations: 108.4 kB / 405 MB, free: 2.961 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.395, allocations: 0 / 405 MB, free: 2.961 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003139/0.3953, allocations: 52.42 kB / 405.1 MB, free: 2.945 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0004986/0.3958, allocations: 0.8195 MB / 405.9 MB, free: 2.223 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003573/0.3962, allocations: 169.8 kB / 406.1 MB, free: 2.172 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3962, allocations: 0 / 406.1 MB, free: 2.172 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.3963, allocations: 74.34 kB / 406.1 MB, free: 2.152 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.3966, allocations: 20.41 kB / 406.1 MB, free: 2.141 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002172/0.3988, allocations: 2.064 MB / 408.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001762/0.399, allocations: 131.4 kB / 408.3 MB, free: 424 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001184/0.3991, allocations: 27.08 kB / 408.4 MB, free: 416 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.3992, allocations: 70.12 kB / 408.4 MB, free: 368 kB / 318.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3992, allocations: 0 / 408.4 MB, free: 368 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03297/0.4322, allocations: 4.382 MB / 412.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.89, allocations: 9.109 kB / 412.8 MB, free: 14.42 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000998203 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.55002476181835]