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.00127/0.00127, allocations: 87.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.005867/0.005867, allocations: 163.7 kB / 24.69 MB, free: 9.434 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.8681/0.8681, allocations: 158.6 MB / 186.5 MB, free: 3.039 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.322e-06/1.322e-06, allocations: 0 / 298.4 MB, free: 3.547 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.807e-05/1.94e-05, allocations: 2.281 kB / 298.4 MB, free: 3.543 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002225/0.002244, allocations: 1.668 MB / 300.1 MB, free: 1.855 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005385/0.002783, allocations: 255.2 kB / 300.3 MB, free: 1.605 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.483e-05/0.002867, allocations: 7.938 kB / 300.3 MB, free: 1.598 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001048/0.002972, allocations: 27.73 kB / 300.4 MB, free: 1.57 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.923e-05/0.003021, allocations: 19.75 kB / 300.4 MB, free: 1.551 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003513/0.003373, allocations: 123.8 kB / 300.5 MB, free: 1.43 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002285/0.003601, allocations: 271.5 kB / 300.8 MB, free: 1.164 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002236/0.003825, allocations: 161.9 kB / 300.9 MB, free: 1.012 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.003931, allocations: 131.8 kB / 301.1 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.518e-05/0.004027, allocations: 71.77 kB / 301.1 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.866e-05/0.004055, allocations: 20 kB / 301.1 MB, free: 0.793 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.122e-05/0.004116, allocations: 39.92 kB / 301.2 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.627e-05/0.004163, allocations: 59.77 kB / 301.2 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.813e-05/0.004221, allocations: 67.81 kB / 301.3 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000256/0.004477, allocations: 255.1 kB / 301.6 MB, free: 388 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.874e-06/0.004479, allocations: 4 kB / 301.6 MB, free: 384 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.00448, allocations: 0 / 301.6 MB, free: 384 kB / 282.7 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.004484, allocations: 4 kB / 301.6 MB, free: 380 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.1206/0.1251, allocations: 417.4 kB / 302 MB, free: 14.36 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.1252, allocations: 14.95 kB / 302 MB, free: 14.36 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.751e-05/0.1252, allocations: 58.08 kB / 302 MB, free: 14.32 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.768e-05/0.1253, allocations: 25.02 kB / 302.1 MB, free: 14.31 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002791/0.1256, allocations: 174.7 kB / 302.2 MB, free: 14.18 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.585e-05/0.1256, allocations: 21.84 kB / 302.3 MB, free: 14.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.167e-05/0.1256, allocations: 29.12 kB / 302.3 MB, free: 14.18 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003992/0.126, allocations: 270.8 kB / 302.6 MB, free: 14.1 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.126, allocations: 5.312 kB / 302.6 MB, free: 14.1 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.18e-05/0.1261, allocations: 10.39 kB / 302.6 MB, free: 14.1 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.1261, allocations: 10.06 kB / 302.6 MB, free: 14.1 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00024/0.1263, allocations: 165.7 kB / 302.7 MB, free: 14.1 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009194/0.1272, allocations: 0.8717 MB / 303.6 MB, free: 13.51 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002314/0.1275, allocations: 138.1 kB / 303.7 MB, free: 13.48 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.713e-05/0.1275, allocations: 65.12 kB / 303.8 MB, free: 13.47 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.1276, allocations: 4.828 kB / 303.8 MB, free: 13.47 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001595/0.1277, allocations: 112.1 kB / 303.9 MB, free: 13.43 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 2.014e-06/0.1277, allocations: 0 / 303.9 MB, free: 13.43 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003416/0.1281, allocations: 219 kB / 304.1 MB, free: 13.38 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.573e-05/0.1281, allocations: 56.53 kB / 304.2 MB, free: 13.32 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.976e-05/0.1282, allocations: 157.1 kB / 304.4 MB, free: 13.21 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.1282, allocations: 41.27 kB / 304.4 MB, free: 13.18 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.276e-05/0.1283, allocations: 138.7 kB / 304.5 MB, free: 13.07 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.156e-05/0.1283, allocations: 64.31 kB / 304.6 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.511e-05/0.1284, allocations: 80 kB / 304.7 MB, free: 12.99 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.352e-05/0.1284, allocations: 330 kB / 305 MB, free: 12.67 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.15e-05/0.1285, allocations: 62.84 kB / 305.1 MB, free: 12.65 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000118/0.1286, allocations: 134.8 kB / 305.2 MB, free: 12.55 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001761/0.1288, allocations: 191.5 kB / 305.4 MB, free: 12.42 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.1288, allocations: 3.219 kB / 305.4 MB, free: 12.42 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002485/0.129, allocations: 255.3 kB / 305.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.1291, allocations: 7.188 kB / 305.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1291, allocations: 2.719 kB / 305.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.1291, allocations: 6.828 kB / 305.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.1292, allocations: 34.53 kB / 305.7 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.1292, allocations: 8.203 kB / 305.7 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.761e-05/0.1293, allocations: 28.28 kB / 305.7 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.654e-05/0.1293, allocations: 15.41 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.555e-05/0.1294, allocations: 165.6 kB / 305.9 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.442e-05/0.1294, allocations: 13.97 kB / 305.9 MB, free: 12.13 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002508/0.1296, allocations: 189.8 kB / 306.1 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.1296, allocations: 2.312 kB / 306.1 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1297, allocations: 1.656 kB / 306.1 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.1297, allocations: 5.375 kB / 306.1 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000474/0.1301, allocations: 0.5506 MB / 306.6 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1301, allocations: 0 / 306.6 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.613e-05/0.1302, allocations: 17.67 kB / 306.7 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1302, allocations: 1.281 kB / 306.7 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.1302, allocations: 6.188 kB / 306.7 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1302, allocations: 5.094 kB / 306.7 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1302, allocations: 1.859 kB / 306.7 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000178/0.1304, allocations: 279.5 kB / 306.9 MB, free: 11.44 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.286e-05/0.1304, allocations: 13.45 kB / 307 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.1304, allocations: 5.828 kB / 307 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.032e-05/0.1305, allocations: 13.56 kB / 307 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.401e-05/0.1305, allocations: 20.89 kB / 307 MB, free: 11.42 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.1305, allocations: 13.48 kB / 307 MB, free: 11.41 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.25e-05/0.1306, allocations: 97.14 kB / 307.1 MB, free: 11.33 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1306, allocations: 0 / 307.1 MB, free: 11.33 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002051/0.1308, allocations: 56.73 kB / 307.2 MB, free: 11.31 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.0003462/0.1311, allocations: 0.8041 MB / 308 MB, free: 10.6 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002348/0.1314, allocations: 173.2 kB / 308.1 MB, free: 10.55 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1314, allocations: 0.9375 kB / 308.1 MB, free: 10.55 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 9.535e-05/0.1314, allocations: 72.89 kB / 308.2 MB, free: 10.53 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/0.1317, allocations: 24.59 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.001375/0.133, allocations: 2.062 MB / 310.3 MB, free: 8.871 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.497e-05/0.1331, allocations: 127.2 kB / 310.4 MB, free: 8.793 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.489e-05/0.1332, allocations: 25.31 kB / 310.4 MB, free: 8.789 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.954e-05/0.1333, allocations: 66.12 kB / 310.5 MB, free: 8.746 MB / 282.7 MB Notification: Performance of SimCode: time 5.92e-07/0.1333, allocations: 5.25 kB / 310.5 MB, free: 8.742 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01716/0.1504, allocations: 4.453 MB / 315 MB, free: 7.422 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.607/6.757, allocations: 5.219 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --stepSize=0.000998203 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.375075343996286]