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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00129/0.00129, allocations: 106.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001347/0.001347, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.519/1.519, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 56.62 kB / 306.3 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1249, allocations: 50.53 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00375/0.1287, allocations: 1.59 MB / 358.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009168/0.1297, allocations: 299.1 kB / 358.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002013/0.1299, allocations: 7.938 kB / 358.8 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002025/0.1302, allocations: 15.86 kB / 358.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.818e-05/0.1302, allocations: 11.92 kB / 358.8 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004825/0.1307, allocations: 91.91 kB / 358.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004066/0.1312, allocations: 247.5 kB / 359.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003548/0.1315, allocations: 154.5 kB / 359.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001458/0.1317, allocations: 79.7 kB / 359.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001559/0.1318, allocations: 95.53 kB / 359.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.869e-05/0.1319, allocations: 16 kB / 359.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.483e-05/0.132, allocations: 20 kB / 359.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.307e-05/0.132, allocations: 51.81 kB / 359.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001446/0.1322, allocations: 87.53 kB / 359.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000301/0.1325, allocations: 199.4 kB / 359.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1325, allocations: 0 / 359.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1325, allocations: 0 / 359.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.793e-05/0.1326, allocations: 0 / 359.8 MB, free: 11.45 MB / 302.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.0008259/0.1334, allocations: 493 kB / 360.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.625e-05/0.1335, allocations: 12.03 kB / 360.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.792e-05/0.1335, allocations: 58.72 kB / 360.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002619/0.1338, allocations: 24.73 kB / 360.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002726/0.1341, allocations: 232 kB / 360.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.684e-05/0.1341, allocations: 20.94 kB / 360.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.876e-05/0.1342, allocations: 24.38 kB / 360.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004567/0.1346, allocations: 236 kB / 360.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.1347, allocations: 11.94 kB / 360.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.646e-05/0.1347, allocations: 11.98 kB / 360.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.1347, allocations: 8 kB / 360.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003063/0.135, allocations: 153.6 kB / 361.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.1361, allocations: 0.6857 MB / 361.7 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003061/0.1365, allocations: 181.5 kB / 361.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/0.1366, allocations: 76.83 kB / 362 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.741e-05/0.1366, allocations: 11.94 kB / 362 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002929/0.1369, allocations: 118.8 kB / 362.1 MB, free: 8.949 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.913e-06/0.1369, allocations: 0 / 362.1 MB, free: 8.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004502/0.1374, allocations: 217.1 kB / 362.3 MB, free: 8.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.662e-05/0.1375, allocations: 55.41 kB / 362.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.1376, allocations: 157.5 kB / 362.5 MB, free: 8.504 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.352e-05/0.1376, allocations: 37.64 kB / 362.6 MB, free: 8.461 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.608e-05/0.1377, allocations: 128.6 kB / 362.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.458e-05/0.1378, allocations: 67.19 kB / 362.8 MB, free: 8.266 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.1379, allocations: 78 kB / 362.8 MB, free: 8.184 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1381, allocations: 322.8 kB / 363.2 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.1382, allocations: 60.62 kB / 363.2 MB, free: 7.801 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.1384, allocations: 132 kB / 363.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003072/0.1387, allocations: 171.3 kB / 363.5 MB, free: 7.457 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1388, allocations: 4 kB / 363.5 MB, free: 7.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004608/0.1392, allocations: 241.2 kB / 363.8 MB, free: 7.211 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.035e-05/0.1393, allocations: 4 kB / 363.8 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.1393, allocations: 7.984 kB / 363.8 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.466e-05/0.1393, allocations: 0 / 363.8 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.1395, allocations: 27.92 kB / 363.8 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.813e-05/0.1395, allocations: 4 kB / 363.8 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.1397, allocations: 35.91 kB / 363.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.1397, allocations: 8 kB / 363.8 MB, free: 7.125 MB / 302.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.0001952/0.1399, allocations: 169.6 kB / 364 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.175e-05/0.1399, allocations: 7.906 kB / 364 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.609e-05/0.14, allocations: 20.84 kB / 364 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.14, allocations: 0 / 364 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.14, allocations: 0 / 364 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.14, allocations: 3.984 kB / 364 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008769/0.1409, allocations: 0.5519 MB / 364.6 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1409, allocations: 0 / 364.6 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.753e-05/0.141, allocations: 20 kB / 364.6 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-05/0.141, allocations: 0 / 364.6 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.1411, allocations: 0 / 364.6 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.743e-06/0.1411, allocations: 7.984 kB / 364.6 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.1411, allocations: 3.938 kB / 364.6 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003139/0.1414, allocations: 275.1 kB / 364.9 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.517e-05/0.1415, allocations: 96.89 kB / 365 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.517e-05/0.1415, allocations: 0 / 365 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.137e-05/0.1416, allocations: 11.98 kB / 365 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.715e-05/0.1417, allocations: 23.91 kB / 365 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.384e-05/0.1417, allocations: 8 kB / 365 MB, free: 5.836 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.297e-05/0.1418, allocations: 91.27 kB / 365.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1418, allocations: 0 / 365.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003087/0.1421, allocations: 51.84 kB / 365.2 MB, free: 5.695 MB / 302.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.localActive,transition1.enableFire,initialStep.localActive,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,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.0005819/0.1427, allocations: 0.807 MB / 366 MB, free: 4.859 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003372/0.1431, allocations: 179.7 kB / 366.2 MB, free: 4.684 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1431, allocations: 448 / 366.2 MB, free: 4.684 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001316/0.1432, allocations: 81.34 kB / 366.2 MB, free: 4.605 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003018/0.1435, allocations: 23.92 kB / 366.3 MB, free: 4.582 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002295/0.1458, allocations: 2.022 MB / 368.3 MB, free: 2.438 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.1462, allocations: 0.7326 MB / 369 MB, free: 1.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.104e-05/0.1462, allocations: 17.95 kB / 369 MB, free: 1.664 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.1464, allocations: 55.41 kB / 369.1 MB, free: 1.609 MB / 302.1 MB Notification: Performance of SimCode: time 3.286e-06/0.1464, allocations: 4 kB / 369.1 MB, free: 1.605 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2177/0.3641, allocations: 3.143 MB / 372.2 MB, free: 19.7 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/0.3643, allocations: 189 kB / 372.4 MB, free: 19.44 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.887/2.251, allocations: 0 / 372.4 MB, free: 19.44 MB / 302.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches