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.001849/0.001849, allocations: 107.6 kB / 21.18 MB, free: 452 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.002398/0.002398, allocations: 213.5 kB / 24.47 MB, free: 3.777 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.46/1.46, allocations: 207.7 MB / 235.3 MB, free: 9.797 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.001851/0.001851, allocations: 53.64 kB / 347.2 MB, free: 9.91 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3331, allocations: 49.16 MB / 396.3 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002851/0.3359, allocations: 1.446 MB / 397.8 MB, free: 7.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007011/0.3366, allocations: 245.4 kB / 398 MB, free: 7.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.069e-05/0.3367, allocations: 7.125 kB / 398 MB, free: 7.734 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001319/0.3369, allocations: 22.23 kB / 398 MB, free: 7.719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.08e-05/0.3369, allocations: 18.62 kB / 398.1 MB, free: 7.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004704/0.3374, allocations: 118.7 kB / 398.2 MB, free: 7.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004169/0.3378, allocations: 262.7 kB / 398.4 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003191/0.3381, allocations: 147.7 kB / 398.6 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.3382, allocations: 91.2 kB / 398.7 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.3384, allocations: 74.34 kB / 398.7 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.258e-05/0.3384, allocations: 22.94 kB / 398.8 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.3385, allocations: 32.33 kB / 398.8 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.721e-05/0.3386, allocations: 59.75 kB / 398.8 MB, free: 7.336 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.3387, allocations: 75.8 kB / 398.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004084/0.3391, allocations: 246.1 kB / 399.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.3391, allocations: 1.156 kB / 399.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.3391, allocations: 4 kB / 399.2 MB, free: 7.172 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.3392, allocations: 0 / 399.2 MB, free: 7.172 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.0007025/0.3399, allocations: 415.6 kB / 399.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.3399, allocations: 17.95 kB / 399.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.35e-05/0.34, allocations: 56.25 kB / 399.6 MB, free: 6.762 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.777e-05/0.3401, allocations: 24.2 kB / 399.7 MB, free: 6.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000347/0.3404, allocations: 162.8 kB / 399.8 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.997e-05/0.3404, allocations: 24.81 kB / 399.9 MB, free: 6.586 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.559e-05/0.3405, allocations: 26.55 kB / 399.9 MB, free: 6.578 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005317/0.341, allocations: 241.3 kB / 400.1 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.341, allocations: 7.875 kB / 400.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.79e-05/0.3411, allocations: 11.42 kB / 400.1 MB, free: 6.441 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.3411, allocations: 4.969 kB / 400.1 MB, free: 6.441 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003546/0.3414, allocations: 157.4 kB / 400.3 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.3425, allocations: 0.6244 MB / 400.9 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000343/0.3429, allocations: 156.9 kB / 401.1 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.343, allocations: 69.95 kB / 401.1 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-05/0.343, allocations: 6.562 kB / 401.1 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002461/0.3433, allocations: 130.4 kB / 401.3 MB, free: 5.703 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.3433, allocations: 3.938 kB / 401.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.000511/0.3438, allocations: 219.5 kB / 401.5 MB, free: 5.605 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.3438, allocations: 57.62 kB / 401.5 MB, free: 5.543 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/0.344, allocations: 147.3 kB / 401.7 MB, free: 5.418 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.258e-05/0.344, allocations: 35.12 kB / 401.7 MB, free: 5.383 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.739e-05/0.3441, allocations: 134.6 kB / 401.9 MB, free: 5.262 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.963e-05/0.3442, allocations: 61.81 kB / 401.9 MB, free: 5.215 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.3443, allocations: 78.09 kB / 402 MB, free: 5.168 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.594e-05/0.3443, allocations: 323.7 kB / 402.3 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.3445, allocations: 67.14 kB / 402.4 MB, free: 4.828 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001631/0.3446, allocations: 129.4 kB / 402.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002328/0.3448, allocations: 169.1 kB / 402.7 MB, free: 4.617 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3448, allocations: 0 / 402.7 MB, free: 4.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003739/0.3452, allocations: 254.6 kB / 402.9 MB, free: 4.496 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.3452, allocations: 5.719 kB / 402.9 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.188e-06/0.3453, allocations: 2.281 kB / 402.9 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.542e-05/0.3453, allocations: 3.188 kB / 402.9 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.3454, allocations: 26.73 kB / 403 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.3454, allocations: 8.094 kB / 403 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.127e-05/0.3455, allocations: 26.3 kB / 403 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.044e-05/0.3456, allocations: 18.25 kB / 403 MB, free: 4.465 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.0001193/0.3457, allocations: 165.3 kB / 403.2 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.251e-05/0.3457, allocations: 14.31 kB / 403.2 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000338/0.346, allocations: 197 kB / 403.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.346, allocations: 2.219 kB / 403.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.346, allocations: 3.469 kB / 403.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.346, allocations: 1.188 kB / 403.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006646/0.3467, allocations: 0.5208 MB / 403.9 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3467, allocations: 1.812 kB / 403.9 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.811e-05/0.3468, allocations: 22.27 kB / 403.9 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.3468, allocations: 5.25 kB / 403.9 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.3468, allocations: 7.031 kB / 403.9 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.3468, allocations: 6.062 kB / 403.9 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.3468, allocations: 3.938 kB / 403.9 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003054/0.3471, allocations: 271 kB / 404.2 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.099e-05/0.3471, allocations: 20.56 kB / 404.2 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.64e-05/0.3472, allocations: 7.547 kB / 404.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.626e-05/0.3473, allocations: 8.875 kB / 404.2 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.219e-05/0.3474, allocations: 27.56 kB / 404.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.3474, allocations: 5.812 kB / 404.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.842e-05/0.3474, allocations: 102.2 kB / 404.4 MB, free: 3.516 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3474, allocations: 0 / 404.4 MB, free: 3.516 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003236/0.3477, allocations: 50.22 kB / 404.4 MB, free: 3.5 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.0005938/0.3483, allocations: 0.8151 MB / 405.2 MB, free: 2.785 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003513/0.3487, allocations: 175 kB / 405.4 MB, free: 2.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3487, allocations: 0 / 405.4 MB, free: 2.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.3488, allocations: 72.89 kB / 405.5 MB, free: 2.711 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000318/0.3492, allocations: 28.23 kB / 405.5 MB, free: 2.695 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002357/0.3515, allocations: 2.012 MB / 407.5 MB, free: 1.09 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001697/0.3517, allocations: 118.6 kB / 407.6 MB, free: 1.016 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.3518, allocations: 26.47 kB / 407.7 MB, free: 1.012 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.3519, allocations: 62.23 kB / 407.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of SimCode: time 1.493e-06/0.3519, allocations: 5.094 kB / 407.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03799/0.3899, allocations: 4.341 MB / 412.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.88, allocations: 5.188 kB / 412.1 MB, free: 15.07 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.506176316179335]