Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008975/0.0008975, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.004766/0.004766, allocations: 165.8 kB / 24.7 MB, free: 8.887 MB / 18.57 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 0.8181/0.8181, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] 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_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.734e-06/1.734e-06, allocations: 0 / 298.4 MB, free: 3.555 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.168e-05/2.342e-05, allocations: 2.281 kB / 298.4 MB, free: 3.551 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003124/0.003148, allocations: 1.668 MB / 300.1 MB, free: 1.863 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006761/0.003824, allocations: 251.2 kB / 300.3 MB, free: 1.617 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.003948, allocations: 7.938 kB / 300.3 MB, free: 1.609 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001323/0.004081, allocations: 23.73 kB / 300.4 MB, free: 1.586 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.084e-05/0.004151, allocations: 23.73 kB / 300.4 MB, free: 1.562 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004686/0.00462, allocations: 119.8 kB / 300.5 MB, free: 1.445 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003417/0.004962, allocations: 275.5 kB / 300.8 MB, free: 1.176 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002913/0.005253, allocations: 161.9 kB / 300.9 MB, free: 1.023 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.005414, allocations: 135.7 kB / 301.1 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001174/0.005531, allocations: 71.75 kB / 301.1 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.924e-05/0.00557, allocations: 24 kB / 301.1 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.514e-05/0.005656, allocations: 32 kB / 301.2 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.348e-05/0.005719, allocations: 55.8 kB / 301.2 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.342e-05/0.005802, allocations: 75.75 kB / 301.3 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002997/0.006102, allocations: 259.1 kB / 301.6 MB, free: 392 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.006104, allocations: 0 / 301.6 MB, free: 392 kB / 282.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.006105, allocations: 4 kB / 301.6 MB, free: 388 kB / 282.7 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.006111, allocations: 3.938 kB / 301.6 MB, free: 384 kB / 282.7 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.1255/0.1316, allocations: 413.9 kB / 302 MB, free: 14.35 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.1316, allocations: 13.89 kB / 302 MB, free: 14.35 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.464e-05/0.1317, allocations: 56.25 kB / 302 MB, free: 14.31 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.376e-05/0.1318, allocations: 27.14 kB / 302.1 MB, free: 14.3 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000274/0.132, allocations: 170.4 kB / 302.2 MB, free: 14.17 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.1321, allocations: 21.53 kB / 302.3 MB, free: 14.17 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.677e-05/0.1321, allocations: 29.5 kB / 302.3 MB, free: 14.17 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003238/0.1324, allocations: 269.6 kB / 302.5 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.1324, allocations: 2.062 kB / 302.5 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.1324, allocations: 11.11 kB / 302.6 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.1324, allocations: 11.41 kB / 302.6 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000206/0.1326, allocations: 168.2 kB / 302.7 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007309/0.1334, allocations: 0.875 MB / 303.6 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001991/0.1336, allocations: 139.7 kB / 303.7 MB, free: 13.47 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.728e-05/0.1337, allocations: 69.23 kB / 303.8 MB, free: 13.46 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.1337, allocations: 1.594 kB / 303.8 MB, free: 13.46 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001581/0.1338, allocations: 109.9 kB / 303.9 MB, free: 13.41 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.823e-06/0.1338, allocations: 2.266 kB / 303.9 MB, free: 13.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002928/0.1341, allocations: 219.4 kB / 304.1 MB, free: 13.37 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.775e-05/0.1342, allocations: 56.17 kB / 304.2 MB, free: 13.31 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.019e-05/0.1342, allocations: 156.3 kB / 304.3 MB, free: 13.2 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.1342, allocations: 39.48 kB / 304.4 MB, free: 13.17 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.239e-05/0.1343, allocations: 140 kB / 304.5 MB, free: 13.06 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.769e-05/0.1343, allocations: 67.7 kB / 304.6 MB, free: 13.03 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.598e-05/0.1344, allocations: 79.67 kB / 304.7 MB, free: 13 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.62e-05/0.1344, allocations: 326.2 kB / 305 MB, free: 12.68 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.671e-05/0.1345, allocations: 63.11 kB / 305 MB, free: 12.66 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.1346, allocations: 137.4 kB / 305.2 MB, free: 12.56 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001702/0.1348, allocations: 191.9 kB / 305.4 MB, free: 12.43 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1348, allocations: 1.344 kB / 305.4 MB, free: 12.43 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002587/0.135, allocations: 258.2 kB / 305.6 MB, free: 12.32 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1351, allocations: 7.484 kB / 305.6 MB, free: 12.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.1351, allocations: 2.938 kB / 305.6 MB, free: 12.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.1351, allocations: 4.641 kB / 305.6 MB, free: 12.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.1352, allocations: 35.53 kB / 305.7 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/0.1352, allocations: 7.734 kB / 305.7 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.422e-05/0.1353, allocations: 25.17 kB / 305.7 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.339e-05/0.1353, allocations: 19.56 kB / 305.7 MB, free: 12.29 MB / 282.7 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 9.101e-05/0.1354, allocations: 163.4 kB / 305.9 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.427e-05/0.1354, allocations: 14.42 kB / 305.9 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002503/0.1356, allocations: 198.4 kB / 306.1 MB, free: 12.05 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1356, allocations: 2.969 kB / 306.1 MB, free: 12.05 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.1356, allocations: 288 / 306.1 MB, free: 12.05 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1356, allocations: 5.172 kB / 306.1 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004558/0.1361, allocations: 0.5421 MB / 306.6 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1361, allocations: 1.219 kB / 306.6 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.02e-05/0.1362, allocations: 21.05 kB / 306.7 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1362, allocations: 1.844 kB / 306.7 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.1362, allocations: 1.734 kB / 306.7 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.1362, allocations: 5.625 kB / 306.7 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1362, allocations: 1.094 kB / 306.7 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001941/0.1364, allocations: 277.1 kB / 306.9 MB, free: 11.45 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.07e-05/0.1364, allocations: 11.73 kB / 307 MB, free: 11.44 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.1364, allocations: 7.688 kB / 307 MB, free: 11.44 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.162e-05/0.1365, allocations: 11.78 kB / 307 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.346e-05/0.1365, allocations: 25.78 kB / 307 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.1365, allocations: 6.75 kB / 307 MB, free: 11.42 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.728e-05/0.1366, allocations: 99.42 kB / 307.1 MB, free: 11.34 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1366, allocations: 1.062 kB / 307.1 MB, free: 11.34 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002101/0.1368, allocations: 58.92 kB / 307.2 MB, free: 11.32 MB / 282.7 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,transition1.enableFire,step.active,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.0003312/0.1371, allocations: 0.804 MB / 308 MB, free: 10.61 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002283/0.1374, allocations: 170 kB / 308.1 MB, free: 10.55 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1374, allocations: 4 kB / 308.1 MB, free: 10.55 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.613e-05/0.1374, allocations: 67.69 kB / 308.2 MB, free: 10.54 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002076/0.1377, allocations: 29.91 kB / 308.2 MB, free: 10.52 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001436/0.1391, allocations: 2.063 MB / 310.3 MB, free: 8.875 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.187e-05/0.1392, allocations: 126 kB / 310.4 MB, free: 8.797 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.155e-05/0.1393, allocations: 28.05 kB / 310.4 MB, free: 8.793 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.369e-05/0.1393, allocations: 68.2 kB / 310.5 MB, free: 8.746 MB / 282.7 MB Notification: Performance of SimCode: time 7.71e-07/0.1393, allocations: 2.406 kB / 310.5 MB, free: 8.746 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01521/0.1545, allocations: 4.456 MB / 315 MB, free: 7.422 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.149/7.304, allocations: 8.922 kB / 315 MB, free: 7.418 MB / 282.7 MB " [Timeout remaining time 653] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_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_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition1.enableFire from file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! Error: Could not read variable transition2.enableFire in file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv. Warning: Get data of variable transition2.enableFire from file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.928466739133]