Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001589/0.001589, allocations: 121.8 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001948/0.001948, allocations: 208.9 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 71.86 kB / 373.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1181, allocations: 53.32 MB / 426.6 MB, free: 5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003131/0.1212, allocations: 1.713 MB / 428.4 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006892/0.1219, allocations: 291.1 kB / 428.6 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.738e-05/0.122, allocations: 4 kB / 428.6 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.1221, allocations: 27.67 kB / 428.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.067e-05/0.1222, allocations: 15.81 kB / 428.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003732/0.1226, allocations: 123.7 kB / 428.8 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003526/0.1229, allocations: 267.5 kB / 429.1 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002839/0.1232, allocations: 165.5 kB / 429.2 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.1233, allocations: 87.7 kB / 429.3 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001425/0.1234, allocations: 95.59 kB / 429.4 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.41e-05/0.1235, allocations: 24 kB / 429.4 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.802e-05/0.1236, allocations: 31.98 kB / 429.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.586e-05/0.1236, allocations: 63.77 kB / 429.5 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.1237, allocations: 95.47 kB / 429.6 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003213/0.1241, allocations: 258.9 kB / 429.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.1241, allocations: 4 kB / 429.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1241, allocations: 4 kB / 429.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1241, allocations: 0 / 429.9 MB, free: 1.75 MB / 350.1 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.0006862/0.1247, allocations: 490.5 kB / 430.4 MB, free: 1.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.1248, allocations: 12.03 kB / 430.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.377e-05/0.1249, allocations: 58.72 kB / 430.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001953/0.1251, allocations: 36.78 kB / 430.5 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002988/0.1254, allocations: 232 kB / 430.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.163e-05/0.1254, allocations: 32.92 kB / 430.7 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.608e-05/0.1254, allocations: 24.38 kB / 430.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004579/0.1259, allocations: 270.6 kB / 431 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.1259, allocations: 7.875 kB / 431 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.379e-05/0.1259, allocations: 8 kB / 431 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.1259, allocations: 12 kB / 431 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000292/0.1262, allocations: 161.6 kB / 431.2 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00122/0.1275, allocations: 0.9596 MB / 432.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002922/0.1277, allocations: 157.4 kB / 432.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.1279, allocations: 69.69 kB / 432.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.326e-05/0.1279, allocations: 4 kB / 432.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002233/0.1281, allocations: 133.1 kB / 432.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.383e-06/0.1281, allocations: 0 / 432.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004359/0.1285, allocations: 218 kB / 432.7 MB, free: 14.67 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.205e-05/0.1286, allocations: 85.11 kB / 432.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001441/0.1288, allocations: 157.7 kB / 433 MB, free: 14.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.432e-05/0.1288, allocations: 37.7 kB / 433 MB, free: 14.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.1289, allocations: 144.7 kB / 433.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.433e-05/0.129, allocations: 67.64 kB / 433.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.1291, allocations: 77.47 kB / 433.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.1292, allocations: 338.7 kB / 433.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.1294, allocations: 63.97 kB / 433.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001811/0.1295, allocations: 144.3 kB / 433.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000275/0.1298, allocations: 192.3 kB / 434 MB, free: 13.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1298, allocations: 0 / 434 MB, free: 13.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003866/0.1302, allocations: 257.3 kB / 434.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.1302, allocations: 8 kB / 434.3 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.1302, allocations: 4.281 kB / 434.3 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.1302, allocations: 7.938 kB / 434.3 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.1304, allocations: 31.92 kB / 434.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.1304, allocations: 4 kB / 434.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.1305, allocations: 31.83 kB / 434.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.665e-05/0.1305, allocations: 8 kB / 434.3 MB, free: 12.93 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($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,transition2.t_start,$PRE.transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.0001657/0.1307, allocations: 165.6 kB / 434.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.258e-05/0.1307, allocations: 11.91 kB / 434.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.67e-05/0.1307, allocations: 28.83 kB / 434.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.1308, allocations: 4 kB / 434.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.1308, allocations: 0 / 434.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.1308, allocations: 0 / 434.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007496/0.1315, allocations: 0.5792 MB / 435.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1315, allocations: 0 / 435.1 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.899e-05/0.1316, allocations: 15.98 kB / 435.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1316, allocations: 0 / 435.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.1316, allocations: 11.94 kB / 435.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1316, allocations: 4 kB / 435.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1316, allocations: 0 / 435.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003093/0.1319, allocations: 272.1 kB / 435.4 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6e-05/0.132, allocations: 85.06 kB / 435.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.561e-05/0.132, allocations: 11.94 kB / 435.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.218e-05/0.1321, allocations: 15.98 kB / 435.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.289e-05/0.1322, allocations: 23.97 kB / 435.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.1322, allocations: 8 kB / 435.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.36e-05/0.1322, allocations: 98.52 kB / 435.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1322, allocations: 0 / 435.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002865/0.1325, allocations: 55.84 kB / 435.7 MB, free: 11.44 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006544/0.1332, allocations: 0.8145 MB / 436.5 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000305/0.1335, allocations: 168.6 kB / 436.7 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1335, allocations: 0 / 436.7 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001256/0.1336, allocations: 87.55 kB / 436.8 MB, free: 10.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002751/0.1339, allocations: 22.73 kB / 436.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002297/0.1362, allocations: 2.063 MB / 438.9 MB, free: 8.117 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003746/0.1366, allocations: 0.7325 MB / 439.6 MB, free: 7.359 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.415e-05/0.1366, allocations: 25.94 kB / 439.6 MB, free: 7.328 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.1367, allocations: 59.36 kB / 439.7 MB, free: 7.27 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1367, allocations: 0 / 439.7 MB, free: 7.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02567/0.1624, allocations: 3.488 MB / 443.2 MB, free: 3.871 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.086/8.249, allocations: 7.984 kB / 443.2 MB, free: 3.863 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 10.988792108837515]