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.0008269/0.0008269, 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.004047/0.004047, allocations: 165.6 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.8359/0.8359, 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_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: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 298.4 MB, free: 3.543 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.617e-05/1.776e-05, allocations: 2.281 kB / 298.4 MB, free: 3.539 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002074/0.002092, allocations: 1.633 MB / 300.1 MB, free: 1.887 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005399/0.002632, allocations: 259.2 kB / 300.3 MB, free: 1.633 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.179e-05/0.002724, allocations: 4 kB / 300.3 MB, free: 1.629 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001134/0.002837, allocations: 27.67 kB / 300.3 MB, free: 1.602 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.201e-05/0.002889, allocations: 23.78 kB / 300.4 MB, free: 1.578 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004056/0.003295, allocations: 123.7 kB / 300.5 MB, free: 1.457 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002597/0.003554, allocations: 271.5 kB / 300.7 MB, free: 1.191 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002461/0.0038, allocations: 171.5 kB / 300.9 MB, free: 1.023 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001199/0.00392, allocations: 139.8 kB / 301 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.004021, allocations: 67.77 kB / 301.1 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.241e-05/0.004053, allocations: 24 kB / 301.1 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.116e-05/0.004125, allocations: 28 kB / 301.2 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.849e-05/0.004183, allocations: 67.73 kB / 301.2 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.777e-05/0.004251, allocations: 67.81 kB / 301.3 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002676/0.004518, allocations: 263.1 kB / 301.6 MB, free: 388 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.004521, allocations: 0 / 301.6 MB, free: 388 kB / 282.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.004521, allocations: 0 / 301.6 MB, free: 388 kB / 282.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.004526, allocations: 4 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.1291/0.1337, allocations: 417 kB / 302 MB, free: 14.35 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.1337, allocations: 14.58 kB / 302 MB, free: 14.34 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.118e-05/0.1338, allocations: 61.31 kB / 302 MB, free: 14.3 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.733e-05/0.1338, allocations: 24.95 kB / 302.1 MB, free: 14.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002583/0.1341, allocations: 167.4 kB / 302.2 MB, free: 14.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.878e-05/0.1341, allocations: 25.75 kB / 302.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.527e-05/0.1341, allocations: 27.94 kB / 302.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003128/0.1344, allocations: 272.4 kB / 302.5 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.1344, allocations: 1 kB / 302.5 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.682e-05/0.1345, allocations: 13.83 kB / 302.6 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.1345, allocations: 10.97 kB / 302.6 MB, free: 14.08 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002037/0.1347, allocations: 164.1 kB / 302.7 MB, free: 14.08 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006839/0.1354, allocations: 0.8816 MB / 303.6 MB, free: 13.49 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.1355, allocations: 135.4 kB / 303.7 MB, free: 13.47 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.009e-05/0.1356, allocations: 65.14 kB / 303.8 MB, free: 13.46 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.1356, allocations: 5.938 kB / 303.8 MB, free: 13.46 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001372/0.1358, allocations: 122.4 kB / 303.9 MB, free: 13.41 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.372e-06/0.1358, allocations: 1.188 kB / 303.9 MB, free: 13.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002919/0.1361, allocations: 208.7 kB / 304.1 MB, free: 13.37 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.881e-05/0.1361, allocations: 57.73 kB / 304.2 MB, free: 13.3 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.44e-05/0.1362, allocations: 162.7 kB / 304.4 MB, free: 13.19 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.1362, allocations: 36.27 kB / 304.4 MB, free: 13.16 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.184e-05/0.1362, allocations: 147.2 kB / 304.5 MB, free: 13.05 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.571e-05/0.1363, allocations: 57.67 kB / 304.6 MB, free: 13.02 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.679e-05/0.1363, allocations: 76.44 kB / 304.7 MB, free: 12.99 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.362e-05/0.1364, allocations: 331.8 kB / 305 MB, free: 12.67 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.384e-05/0.1364, allocations: 62.45 kB / 305 MB, free: 12.65 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.444e-05/0.1365, allocations: 141.7 kB / 305.2 MB, free: 12.54 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001503/0.1367, allocations: 190 kB / 305.4 MB, free: 12.41 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1367, allocations: 1.875 kB / 305.4 MB, free: 12.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002388/0.1369, allocations: 262.8 kB / 305.6 MB, free: 12.3 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.1369, allocations: 5.875 kB / 305.6 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.1369, allocations: 2.781 kB / 305.6 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.137, allocations: 4.531 kB / 305.6 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.332e-05/0.137, allocations: 34.8 kB / 305.7 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.1371, allocations: 4 kB / 305.7 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.5e-05/0.1371, allocations: 31.59 kB / 305.7 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.977e-05/0.1371, allocations: 10.72 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 7.858e-05/0.1372, allocations: 164.8 kB / 305.9 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.194e-05/0.1372, allocations: 15.48 kB / 305.9 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002089/0.1374, allocations: 198.1 kB / 306.1 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1374, allocations: 3.25 kB / 306.1 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1374, allocations: 0 / 306.1 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1374, allocations: 2.953 kB / 306.1 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003989/0.1378, allocations: 0.5465 MB / 306.6 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.1378, allocations: 1.125 kB / 306.6 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.966e-05/0.1379, allocations: 16.7 kB / 306.7 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1379, allocations: 1.281 kB / 306.7 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.1379, allocations: 7.406 kB / 306.7 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.1379, allocations: 4.781 kB / 306.7 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1379, allocations: 4.891 kB / 306.7 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001653/0.1381, allocations: 276.2 kB / 307 MB, free: 11.45 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.039e-05/0.1381, allocations: 16.97 kB / 307 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.578e-05/0.1381, allocations: 8.078 kB / 307 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.255e-05/0.1381, allocations: 15.28 kB / 307 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.194e-05/0.1382, allocations: 22.36 kB / 307 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.1382, allocations: 5.891 kB / 307 MB, free: 11.41 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.873e-05/0.1382, allocations: 101.4 kB / 307.1 MB, free: 11.33 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1382, allocations: 0 / 307.1 MB, free: 11.33 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001955/0.1384, allocations: 52.27 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,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.0002983/0.1387, allocations: 0.8083 MB / 308 MB, free: 10.6 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002057/0.1389, allocations: 177.5 kB / 308.1 MB, free: 10.54 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.1389, allocations: 1.5 kB / 308.2 MB, free: 10.54 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.38e-05/0.139, allocations: 72.16 kB / 308.2 MB, free: 10.52 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001873/0.1392, allocations: 25.12 kB / 308.2 MB, free: 10.51 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001247/0.1404, allocations: 2.07 MB / 310.3 MB, free: 8.871 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.218e-05/0.1405, allocations: 126.9 kB / 310.4 MB, free: 8.793 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.368e-05/0.1406, allocations: 28.02 kB / 310.5 MB, free: 8.789 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.747e-05/0.1406, allocations: 68.89 kB / 310.5 MB, free: 8.742 MB / 282.7 MB Notification: Performance of SimCode: time 4.71e-07/0.1406, allocations: 0 / 310.5 MB, free: 8.742 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01541/0.1561, allocations: 4.494 MB / 315 MB, free: 7.418 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.695/6.851, allocations: 9.109 kB / 315 MB, free: 7.41 MB / 282.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --stepSize=0.000998203 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.42853244021535]