Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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.001337/0.001337, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.001472/0.001472, allocations: 208.6 kB / 24.49 MB, free: 4.055 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.488/1.488, allocations: 207.6 MB / 235.3 MB, free: 10 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,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",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.00179/0.00179, allocations: 51.92 kB / 347.2 MB, free: 10.16 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3381/0.3399, allocations: 49.17 MB / 396.3 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00263/0.3425, allocations: 1.483 MB / 397.8 MB, free: 7.949 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006688/0.3432, allocations: 245.8 kB / 398 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.3433, allocations: 7.406 kB / 398.1 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001559/0.3434, allocations: 26.44 kB / 398.1 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.363e-05/0.3435, allocations: 17.78 kB / 398.1 MB, free: 7.746 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004434/0.3439, allocations: 118.7 kB / 398.2 MB, free: 7.684 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003837/0.3443, allocations: 267.7 kB / 398.5 MB, free: 7.566 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003608/0.3447, allocations: 137.9 kB / 398.6 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.3448, allocations: 99.69 kB / 398.7 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001923/0.345, allocations: 91.69 kB / 398.8 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.544e-05/0.3451, allocations: 22.31 kB / 398.8 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.3452, allocations: 28.91 kB / 398.8 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.718e-05/0.3453, allocations: 58.23 kB / 398.9 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.3454, allocations: 92.95 kB / 399 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004537/0.3458, allocations: 244.1 kB / 399.2 MB, free: 7.191 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.3458, allocations: 1.094 kB / 399.2 MB, free: 7.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.3459, allocations: 0 / 399.2 MB, free: 7.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.3459, allocations: 0 / 399.2 MB, free: 7.191 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008021/0.3467, allocations: 423.2 kB / 399.6 MB, free: 6.832 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.047e-05/0.3467, allocations: 13.27 kB / 399.7 MB, free: 6.828 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.754e-05/0.3468, allocations: 56.77 kB / 399.7 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.472e-05/0.3469, allocations: 23.58 kB / 399.7 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003311/0.3472, allocations: 167.1 kB / 399.9 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.709e-05/0.3473, allocations: 20.41 kB / 399.9 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.612e-05/0.3473, allocations: 26.03 kB / 399.9 MB, free: 6.594 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005538/0.3479, allocations: 245.3 kB / 400.2 MB, free: 6.469 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.3479, allocations: 4.594 kB / 400.2 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.066e-05/0.3479, allocations: 10.44 kB / 400.2 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.84e-05/0.3479, allocations: 5.625 kB / 400.2 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003547/0.3483, allocations: 161 kB / 400.4 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.3494, allocations: 0.6622 MB / 401 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003132/0.3497, allocations: 164 kB / 401.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.3498, allocations: 74.75 kB / 401.3 MB, free: 5.785 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.3499, allocations: 6.344 kB / 401.3 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.3501, allocations: 125.1 kB / 401.4 MB, free: 5.699 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.184e-06/0.3501, allocations: 4 kB / 401.4 MB, free: 5.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004537/0.3506, allocations: 219.2 kB / 401.6 MB, free: 5.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.657e-05/0.3506, allocations: 55.61 kB / 401.7 MB, free: 5.539 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.3507, allocations: 153 kB / 401.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.3508, allocations: 34.06 kB / 401.8 MB, free: 5.375 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.608e-05/0.3508, allocations: 134.9 kB / 402 MB, free: 5.254 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.499e-05/0.3509, allocations: 61.28 kB / 402 MB, free: 5.207 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.725e-05/0.351, allocations: 77.36 kB / 402.1 MB, free: 5.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.506e-05/0.351, allocations: 328 kB / 402.4 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.3512, allocations: 61.89 kB / 402.5 MB, free: 4.82 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.3513, allocations: 129.9 kB / 402.6 MB, free: 4.727 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002122/0.3515, allocations: 172.8 kB / 402.8 MB, free: 4.605 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.3515, allocations: 0 / 402.8 MB, free: 4.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003606/0.3519, allocations: 249.6 kB / 403 MB, free: 4.484 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.3519, allocations: 6.812 kB / 403 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.3519, allocations: 4.391 kB / 403 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.311e-05/0.3519, allocations: 3.25 kB / 403 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001445/0.3521, allocations: 27.19 kB / 403.1 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.3521, allocations: 3.094 kB / 403.1 MB, free: 4.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.3522, allocations: 35.58 kB / 403.1 MB, free: 4.457 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-05/0.3523, allocations: 8.031 kB / 403.1 MB, free: 4.457 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001547/0.3524, allocations: 165.8 kB / 403.3 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.536e-05/0.3524, allocations: 15.67 kB / 403.3 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003625/0.3528, allocations: 191.3 kB / 403.5 MB, free: 4.207 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.3528, allocations: 3.062 kB / 403.5 MB, free: 4.207 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.3528, allocations: 1.156 kB / 403.5 MB, free: 4.207 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.3528, allocations: 0 / 403.5 MB, free: 4.207 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008906/0.3537, allocations: 0.5303 MB / 404 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.3537, allocations: 0.6562 kB / 404 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.902e-05/0.3538, allocations: 27.3 kB / 404 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.3538, allocations: 1.469 kB / 404 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.3538, allocations: 6.062 kB / 404 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.3538, allocations: 1.25 kB / 404 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.3538, allocations: 6.297 kB / 404.1 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003405/0.3542, allocations: 275.9 kB / 404.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.319e-05/0.3542, allocations: 17.09 kB / 404.3 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.971e-05/0.3542, allocations: 10.09 kB / 404.4 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.139e-05/0.3543, allocations: 14.12 kB / 404.4 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.509e-05/0.3544, allocations: 26.14 kB / 404.4 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.3544, allocations: 17.91 kB / 404.4 MB, free: 3.582 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.941e-05/0.3545, allocations: 97.11 kB / 404.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3545, allocations: 0 / 404.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003359/0.3548, allocations: 48.98 kB / 404.6 MB, free: 3.488 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 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0004861/0.3553, allocations: 0.8136 MB / 405.4 MB, free: 2.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003346/0.3556, allocations: 173.4 kB / 405.5 MB, free: 2.719 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3556, allocations: 0 / 405.5 MB, free: 2.719 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001275/0.3558, allocations: 76.91 kB / 405.6 MB, free: 2.695 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000296/0.356, allocations: 20.38 kB / 405.6 MB, free: 2.684 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/0.3581, allocations: 2.021 MB / 407.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002095/0.3583, allocations: 0.7327 MB / 408.4 MB, free: 372 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.809e-05/0.3584, allocations: 21.78 kB / 408.4 MB, free: 372 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.3585, allocations: 59.09 kB / 408.5 MB, free: 332 kB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3585, allocations: 0 / 408.5 MB, free: 332 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0354/0.3939, allocations: 3.943 MB / 412.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.17, allocations: 10.05 kB / 412.4 MB, free: 14.88 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000998801 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.909883218002506]