Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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.001674/0.001674, allocations: 122.7 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.002031/0.002031, allocations: 210.5 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.47/1.47, allocations: 230.2 MB / 254.5 MB, free: 15.43 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,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 59.89 kB / 373.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1132, allocations: 53.33 MB / 426.6 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003045/0.1162, allocations: 1.5 MB / 428.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007927/0.117, allocations: 283.2 kB / 428.4 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001281/0.1171, allocations: 4 kB / 428.4 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001636/0.1173, allocations: 27.67 kB / 428.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.188e-05/0.1174, allocations: 11.81 kB / 428.5 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004516/0.1178, allocations: 119.8 kB / 428.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003499/0.1182, allocations: 255.5 kB / 428.8 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002751/0.1184, allocations: 138.4 kB / 429 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.1186, allocations: 83.7 kB / 429 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.1187, allocations: 95.59 kB / 429.1 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.519e-05/0.1187, allocations: 28 kB / 429.2 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.967e-05/0.1188, allocations: 27.94 kB / 429.2 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.665e-05/0.1189, allocations: 55.83 kB / 429.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.119, allocations: 95.52 kB / 429.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003191/0.1193, allocations: 250.9 kB / 429.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1193, allocations: 0 / 429.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1193, allocations: 0 / 429.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.7e-06/0.1193, allocations: 0 / 429.6 MB, free: 2.105 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006939/0.12, allocations: 482.3 kB / 430.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.12, allocations: 12.03 kB / 430.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.033e-05/0.1201, allocations: 62.67 kB / 430.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002712/0.1204, allocations: 28.83 kB / 430.2 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000362/0.1208, allocations: 232 kB / 430.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.68e-05/0.1208, allocations: 20.94 kB / 430.4 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.036e-05/0.1208, allocations: 24.38 kB / 430.4 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004497/0.1213, allocations: 236 kB / 430.7 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.1213, allocations: 3.938 kB / 430.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.128e-05/0.1213, allocations: 12 kB / 430.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.1213, allocations: 4 kB / 430.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003119/0.1216, allocations: 169.6 kB / 430.8 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.1227, allocations: 0.6819 MB / 431.5 MB, free: 0 / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003119/0.123, allocations: 162.9 kB / 431.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.1231, allocations: 64.84 kB / 431.7 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.1231, allocations: 3.938 kB / 431.7 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002071/0.1233, allocations: 119.3 kB / 431.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.432e-06/0.1233, allocations: 0 / 431.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004345/0.1237, allocations: 217.3 kB / 432.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.331e-05/0.1238, allocations: 59.41 kB / 432.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/0.1239, allocations: 146 kB / 432.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.124, allocations: 37.7 kB / 432.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.1241, allocations: 136.8 kB / 432.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.437e-05/0.1241, allocations: 59.55 kB / 432.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.1242, allocations: 74.02 kB / 432.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.1244, allocations: 326.8 kB / 432.9 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.1245, allocations: 56.64 kB / 433 MB, free: 14.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.1247, allocations: 132.1 kB / 433.1 MB, free: 14.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002593/0.125, allocations: 178.6 kB / 433.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.125, allocations: 0 / 433.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003756/0.1254, allocations: 245.3 kB / 433.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.1254, allocations: 4.219 kB / 433.5 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.1254, allocations: 8 kB / 433.5 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.1254, allocations: 4 kB / 433.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.1255, allocations: 23.92 kB / 433.5 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.1255, allocations: 7.984 kB / 433.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.324e-05/0.1256, allocations: 27.78 kB / 433.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.421e-05/0.1256, allocations: 12 kB / 433.6 MB, free: 13.8 MB / 366.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.0001549/0.1258, allocations: 165.7 kB / 433.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.945e-05/0.1258, allocations: 7.953 kB / 433.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.643e-05/0.1259, allocations: 20.84 kB / 433.8 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.1259, allocations: 0 / 433.8 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1259, allocations: 0 / 433.8 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.1259, allocations: 0 / 433.8 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007113/0.1266, allocations: 0.5575 MB / 434.3 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1266, allocations: 3.938 kB / 434.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.622e-05/0.1267, allocations: 23.92 kB / 434.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.1267, allocations: 4 kB / 434.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.1267, allocations: 0 / 434.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.1267, allocations: 7.984 kB / 434.4 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1267, allocations: 0 / 434.4 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003126/0.127, allocations: 275.9 kB / 434.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.624e-05/0.1271, allocations: 92.94 kB / 434.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.385e-05/0.1271, allocations: 4 kB / 434.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.514e-05/0.1272, allocations: 11.98 kB / 434.7 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.311e-05/0.1272, allocations: 19.92 kB / 434.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.238e-05/0.1273, allocations: 11.98 kB / 434.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.34e-05/0.1273, allocations: 106.4 kB / 434.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1273, allocations: 0 / 434.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003169/0.1276, allocations: 51.84 kB / 434.9 MB, free: 12.36 MB / 366.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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 20 * 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.0006567/0.1283, allocations: 0.7982 MB / 435.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003119/0.1286, allocations: 160.7 kB / 435.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1286, allocations: 0 / 435.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.1287, allocations: 79.62 kB / 436 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.129, allocations: 24.62 kB / 436 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002304/0.1313, allocations: 1.991 MB / 438 MB, free: 9.156 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/0.1317, allocations: 0.7284 MB / 438.7 MB, free: 8.402 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.496e-05/0.1318, allocations: 25.94 kB / 438.7 MB, free: 8.379 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.1319, allocations: 55.42 kB / 438.8 MB, free: 8.324 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1319, allocations: 0 / 438.8 MB, free: 8.324 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02514/0.1571, allocations: 3.416 MB / 442.2 MB, free: 4.977 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.103/8.261, allocations: 4.062 kB / 442.2 MB, free: 4.973 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --stepSize=0.00109737 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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.981128979008645]