Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 91.2 kB / 16.65 MB, free: 6.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 179.9 kB / 17.56 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004523/0.0004524, allocations: 4 kB / 301.5 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1753, allocations: 50.4 MB / 351.9 MB, free: 3.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001873/0.1772, allocations: 1.228 MB / 353.1 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008185/0.178, allocations: 299.1 kB / 353.4 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.1782, allocations: 0 / 353.4 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.1783, allocations: 15.81 kB / 353.5 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.201e-05/0.1784, allocations: 15.86 kB / 353.5 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004367/0.1788, allocations: 95.91 kB / 353.6 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003456/0.1792, allocations: 243.5 kB / 353.8 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002938/0.1795, allocations: 142.2 kB / 353.9 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.1796, allocations: 59.77 kB / 354 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.1797, allocations: 79.56 kB / 354.1 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.274e-05/0.1798, allocations: 8 kB / 354.1 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.331e-05/0.1799, allocations: 27.92 kB / 354.1 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.475e-05/0.1799, allocations: 35.89 kB / 354.1 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.1801, allocations: 109.2 kB / 354.3 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002564/0.1803, allocations: 195.3 kB / 354.4 MB, free: 1.078 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1803, allocations: 0 / 354.4 MB, free: 1.078 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1803, allocations: 0 / 354.4 MB, free: 1.078 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.1803, allocations: 0 / 354.4 MB, free: 1.078 MB / 286.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.0006812/0.181, allocations: 446.9 kB / 354.9 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.1811, allocations: 8.031 kB / 354.9 MB, free: 0.582 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.568e-05/0.1812, allocations: 58.73 kB / 354.9 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.035e-05/0.1812, allocations: 24.66 kB / 355 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002718/0.1815, allocations: 232 kB / 355.2 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.492e-05/0.1816, allocations: 24.94 kB / 355.2 MB, free: 208 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.208e-05/0.1816, allocations: 28.36 kB / 355.2 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004527/0.1821, allocations: 240 kB / 355.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.1821, allocations: 3.938 kB / 355.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.638e-05/0.1821, allocations: 8 kB / 355.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.1821, allocations: 11.94 kB / 355.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003267/0.1825, allocations: 165.6 kB / 355.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.1836, allocations: 0.7012 MB / 356.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003133/0.1839, allocations: 178 kB / 356.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.1841, allocations: 76.83 kB / 356.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.1841, allocations: 7.938 kB / 356.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002312/0.1843, allocations: 119.3 kB / 356.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.823e-06/0.1843, allocations: 0 / 356.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004345/0.1848, allocations: 228.9 kB / 357 MB, free: 14.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/0.1848, allocations: 55.27 kB / 357 MB, free: 14.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.185, allocations: 149.1 kB / 357.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.185, allocations: 41.69 kB / 357.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.34e-05/0.1851, allocations: 124.7 kB / 357.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.735e-05/0.1852, allocations: 63.19 kB / 357.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.858e-05/0.1852, allocations: 49.69 kB / 357.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.1854, allocations: 330.8 kB / 357.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/0.1855, allocations: 64.62 kB / 357.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000227/0.1858, allocations: 128.1 kB / 358 MB, free: 13.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002565/0.186, allocations: 179.2 kB / 358.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.186, allocations: 0 / 358.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003876/0.1864, allocations: 245.2 kB / 358.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.1864, allocations: 8 kB / 358.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.1865, allocations: 0 / 358.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.1865, allocations: 7.938 kB / 358.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.1866, allocations: 31.92 kB / 358.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.1866, allocations: 4 kB / 358.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.1867, allocations: 31.67 kB / 358.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.902e-05/0.1868, allocations: 12.22 kB / 358.5 MB, free: 12.77 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.0001613/0.1869, allocations: 161.7 kB / 358.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.308e-05/0.187, allocations: 11.81 kB / 358.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003558/0.1873, allocations: 194.3 kB / 358.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.1873, allocations: 4 kB / 358.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.1874, allocations: 0 / 358.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.1874, allocations: 3.984 kB / 358.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007618/0.1881, allocations: 0.5683 MB / 359.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1882, allocations: 4 kB / 359.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.412e-05/0.1882, allocations: 16 kB / 359.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.1882, allocations: 3.984 kB / 359.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.1883, allocations: 3.984 kB / 359.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.108e-05/0.1883, allocations: 4 kB / 359.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.1883, allocations: 7.875 kB / 359.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003215/0.1886, allocations: 275.7 kB / 359.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.168e-05/0.1887, allocations: 100.8 kB / 359.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.994e-05/0.1887, allocations: 12 kB / 359.8 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.911e-05/0.1888, allocations: 8 kB / 359.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.927e-05/0.1889, allocations: 23.91 kB / 359.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.617e-05/0.1889, allocations: 11.98 kB / 359.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.087e-05/0.189, allocations: 95.27 kB / 359.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.189, allocations: 4 kB / 360 MB, free: 11.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003211/0.1893, allocations: 51.84 kB / 360 MB, free: 11.12 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: 19 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$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 (26): * Single equations (assignments): 22 * 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.000691/0.19, allocations: 0.8099 MB / 360.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003293/0.1904, allocations: 180.1 kB / 361 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1904, allocations: 8.125 kB / 361 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.1905, allocations: 84.28 kB / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002885/0.1908, allocations: 27.92 kB / 361.1 MB, free: 9.988 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002385/0.1932, allocations: 2.068 MB / 363.2 MB, free: 7.797 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.1936, allocations: 0.7326 MB / 363.9 MB, free: 7.039 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.684e-05/0.1937, allocations: 17.95 kB / 363.9 MB, free: 7.023 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.1938, allocations: 63.41 kB / 364 MB, free: 6.961 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1938, allocations: 4 kB / 364 MB, free: 6.957 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01524/0.2091, allocations: 3.264 MB / 367.3 MB, free: 3.801 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/0.2093, allocations: 189.7 kB / 367.4 MB, free: 3.547 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.03/2.24, allocations: 0 / 367.4 MB, free: 3.547 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches