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.001456/0.001456, allocations: 107.1 kB / 17.32 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001561/0.001561, allocations: 205.8 kB / 18.26 MB, free: 4.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.516/1.516, allocations: 227.4 MB / 246.4 MB, free: 9.098 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 65.12 kB / 306.5 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.149, allocations: 50.52 MB / 357.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.005099/0.1542, allocations: 1.599 MB / 358.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.1555, allocations: 295.2 kB / 359 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002745/0.1558, allocations: 4 kB / 359 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000271/0.1561, allocations: 19.86 kB / 359 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001162/0.1563, allocations: 7.938 kB / 359 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007128/0.157, allocations: 99.84 kB / 359.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006177/0.1577, allocations: 255.5 kB / 359.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004861/0.1582, allocations: 166.3 kB / 359.5 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001871/0.1584, allocations: 87.75 kB / 359.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002252/0.1586, allocations: 99.53 kB / 359.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.2e-05/0.1587, allocations: 20 kB / 359.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.1588, allocations: 28 kB / 359.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.096e-05/0.1589, allocations: 55.83 kB / 359.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001543/0.159, allocations: 95.52 kB / 359.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003637/0.1594, allocations: 219.3 kB / 360.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.1594, allocations: 0 / 360.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1594, allocations: 7.938 kB / 360.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.1595, allocations: 0 / 360.1 MB, free: 11.05 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.0008728/0.1603, allocations: 494.8 kB / 360.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.993e-05/0.1604, allocations: 8.031 kB / 360.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.589e-05/0.1605, allocations: 54.73 kB / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002739/0.1608, allocations: 28.73 kB / 360.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003234/0.1611, allocations: 224 kB / 360.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.211e-05/0.1612, allocations: 24.92 kB / 360.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.31e-05/0.1613, allocations: 28.38 kB / 360.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000575/0.1618, allocations: 244 kB / 361.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.1619, allocations: 3.938 kB / 361.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.169e-05/0.1619, allocations: 8 kB / 361.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.1619, allocations: 4 kB / 361.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003867/0.1623, allocations: 153.7 kB / 361.3 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/0.1639, allocations: 0.7012 MB / 362 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004014/0.1643, allocations: 171.6 kB / 362.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001792/0.1645, allocations: 80.83 kB / 362.3 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.77e-05/0.1646, allocations: 3.938 kB / 362.3 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004013/0.165, allocations: 115.3 kB / 362.4 MB, free: 8.551 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 3.928e-06/0.165, allocations: 0 / 362.4 MB, free: 8.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005073/0.1655, allocations: 224.2 kB / 362.6 MB, free: 8.328 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.761e-05/0.1656, allocations: 55.41 kB / 362.7 MB, free: 8.262 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000181/0.1658, allocations: 157.5 kB / 362.8 MB, free: 8.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.763e-05/0.1658, allocations: 37.7 kB / 362.9 MB, free: 8.059 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.166, allocations: 132.6 kB / 363 MB, free: 7.926 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.51e-05/0.166, allocations: 59.2 kB / 363.1 MB, free: 7.867 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001811/0.1662, allocations: 74.02 kB / 363.1 MB, free: 7.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.1664, allocations: 322.8 kB / 363.4 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.1665, allocations: 68.56 kB / 363.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/0.1667, allocations: 132.1 kB / 363.6 MB, free: 7.246 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002949/0.167, allocations: 175.2 kB / 363.8 MB, free: 7.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.167, allocations: 0 / 363.8 MB, free: 7.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004572/0.1675, allocations: 241.2 kB / 364 MB, free: 6.809 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.1675, allocations: 4 kB / 364 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.1676, allocations: 4.219 kB / 364.1 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.421e-05/0.1676, allocations: 8 kB / 364.1 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.1678, allocations: 27.92 kB / 364.1 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.1678, allocations: 3.938 kB / 364.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.1679, allocations: 31.67 kB / 364.1 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.158e-05/0.1679, allocations: 16 kB / 364.1 MB, free: 6.715 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.000222/0.1682, allocations: 157.7 kB / 364.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.029e-05/0.1682, allocations: 7.906 kB / 364.3 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.456e-05/0.1683, allocations: 24.83 kB / 364.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.1683, allocations: 4 kB / 364.3 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.1683, allocations: 0 / 364.3 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.1683, allocations: 0 / 364.3 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009008/0.1692, allocations: 0.5487 MB / 364.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.1693, allocations: 0 / 364.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.427e-05/0.1693, allocations: 23.92 kB / 364.9 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.1694, allocations: 0 / 364.9 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.1694, allocations: 8 kB / 364.9 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.1694, allocations: 0 / 364.9 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.1694, allocations: 3.938 kB / 364.9 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000364/0.1698, allocations: 268.6 kB / 365.2 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.563e-05/0.1699, allocations: 88.95 kB / 365.3 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.055e-05/0.1699, allocations: 4 kB / 365.3 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.514e-05/0.17, allocations: 11.94 kB / 365.3 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.578e-05/0.1701, allocations: 27.91 kB / 365.3 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.203e-05/0.1701, allocations: 8 kB / 365.3 MB, free: 5.441 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.385e-05/0.1702, allocations: 95.27 kB / 365.4 MB, free: 5.348 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1702, allocations: 4 kB / 365.4 MB, free: 5.344 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003141/0.1705, allocations: 43.84 kB / 365.5 MB, free: 5.301 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.0008401/0.1714, allocations: 0.8166 MB / 366.3 MB, free: 4.457 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003957/0.1718, allocations: 183.6 kB / 366.4 MB, free: 4.277 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1718, allocations: 0 / 366.4 MB, free: 4.277 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001478/0.1719, allocations: 79.91 kB / 366.5 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.1723, allocations: 26.73 kB / 366.6 MB, free: 4.176 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002732/0.175, allocations: 2.031 MB / 368.6 MB, free: 2.016 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004246/0.1755, allocations: 0.7323 MB / 369.3 MB, free: 1.258 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001149/0.1756, allocations: 21.95 kB / 369.3 MB, free: 1.238 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.1757, allocations: 55.42 kB / 369.4 MB, free: 1.188 MB / 302.1 MB Notification: Performance of SimCode: time 7.52e-07/0.1757, allocations: 0 / 369.4 MB, free: 1.188 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2779/0.4536, allocations: 3.264 MB / 372.7 MB, free: 19.95 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001859/0.4539, allocations: 190.6 kB / 372.8 MB, free: 19.69 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.214/2.668, allocations: 0 / 372.8 MB, free: 19.69 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