Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001689/0.001689, allocations: 108.1 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002128/0.002128, allocations: 205.8 kB / 18.26 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 227.4 MB / 246.4 MB, free: 10.83 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002565/0.002565, allocations: 65.92 kB / 306.5 MB, free: 0.8672 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.1738, allocations: 50.53 MB / 357.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004825/0.1787, allocations: 1.772 MB / 358.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009852/0.1797, allocations: 303.1 kB / 359.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000202/0.1799, allocations: 4 kB / 359.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002055/0.1802, allocations: 15.81 kB / 359.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.303e-05/0.1803, allocations: 15.91 kB / 359.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005115/0.1808, allocations: 103.9 kB / 359.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000471/0.1813, allocations: 271.5 kB / 359.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004485/0.1818, allocations: 190.9 kB / 359.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.1819, allocations: 91.69 kB / 359.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001993/0.1821, allocations: 99.55 kB / 359.9 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.436e-05/0.1822, allocations: 24 kB / 359.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.1823, allocations: 27.98 kB / 360 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.1824, allocations: 59.83 kB / 360 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001993/0.1826, allocations: 107.5 kB / 360.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004701/0.1831, allocations: 239.5 kB / 360.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.251e-05/0.1831, allocations: 0 / 360.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.779e-06/0.1832, allocations: 3.938 kB / 360.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.556e-05/0.1832, allocations: 0 / 360.4 MB, free: 11.02 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001228/0.1844, allocations: 498.6 kB / 360.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.584e-05/0.1845, allocations: 8.031 kB / 360.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001189/0.1846, allocations: 62.73 kB / 360.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003281/0.185, allocations: 32.64 kB / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.1853, allocations: 228 kB / 361.2 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.477e-05/0.1854, allocations: 24.94 kB / 361.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.526e-05/0.1855, allocations: 36.36 kB / 361.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005239/0.186, allocations: 266.5 kB / 361.5 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.186, allocations: 3.938 kB / 361.5 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.948e-05/0.1861, allocations: 12 kB / 361.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.1861, allocations: 8 kB / 361.5 MB, free: 9.742 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003233/0.1864, allocations: 165.6 kB / 361.7 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001342/0.1878, allocations: 0.9594 MB / 362.6 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003232/0.1881, allocations: 189.3 kB / 362.8 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.1883, allocations: 86.38 kB / 362.9 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.1883, allocations: 0 / 362.9 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003412/0.1886, allocations: 136.3 kB / 363 MB, free: 8.109 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.1887, allocations: 0 / 363 MB, free: 8.109 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005003/0.1892, allocations: 225.2 kB / 363.3 MB, free: 7.883 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.574e-05/0.1893, allocations: 81.11 kB / 363.3 MB, free: 7.785 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001732/0.1894, allocations: 164.1 kB / 363.5 MB, free: 7.617 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.275e-05/0.1895, allocations: 41.69 kB / 363.5 MB, free: 7.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.1896, allocations: 128.6 kB / 363.7 MB, free: 7.441 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.808e-05/0.1897, allocations: 63.2 kB / 363.7 MB, free: 7.379 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.1898, allocations: 81.58 kB / 363.8 MB, free: 7.293 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.19, allocations: 334.9 kB / 364.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.1901, allocations: 67.75 kB / 364.2 MB, free: 6.891 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.1903, allocations: 140.5 kB / 364.3 MB, free: 6.723 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002798/0.1906, allocations: 185 kB / 364.5 MB, free: 6.512 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.1906, allocations: 8 kB / 364.5 MB, free: 6.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004215/0.191, allocations: 249.2 kB / 364.8 MB, free: 6.254 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.258e-05/0.1911, allocations: 8 kB / 364.8 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.1911, allocations: 4 kB / 364.8 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.371e-05/0.1911, allocations: 4 kB / 364.8 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.1913, allocations: 35.86 kB / 364.8 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.888e-05/0.1913, allocations: 12.27 kB / 364.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.1915, allocations: 23.78 kB / 364.9 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.633e-05/0.1915, allocations: 16 kB / 364.9 MB, free: 6.152 MB / 302.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.condition,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.0002037/0.1917, allocations: 162.7 kB / 365 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.237e-05/0.1918, allocations: 19.75 kB / 365.1 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.065e-05/0.1918, allocations: 16.84 kB / 365.1 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.1918, allocations: 4 kB / 365.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.1919, allocations: 0 / 365.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.1919, allocations: 7.984 kB / 365.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009042/0.1928, allocations: 0.5781 MB / 365.7 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.1928, allocations: 0 / 365.7 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.547e-05/0.1929, allocations: 15.94 kB / 365.7 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.1929, allocations: 7.938 kB / 365.7 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.1929, allocations: 11.91 kB / 365.7 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.349e-06/0.1929, allocations: 4 kB / 365.7 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1929, allocations: 0 / 365.7 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003384/0.1933, allocations: 276 kB / 366 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.365e-05/0.1934, allocations: 92.94 kB / 366.1 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.947e-05/0.1934, allocations: 11.94 kB / 366.1 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.411e-05/0.1935, allocations: 8 kB / 366.1 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.627e-05/0.1936, allocations: 19.97 kB / 366.1 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.1936, allocations: 4 kB / 366.1 MB, free: 4.816 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.53e-05/0.1937, allocations: 103.3 kB / 366.2 MB, free: 4.715 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1937, allocations: 0 / 366.2 MB, free: 4.715 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003467/0.1941, allocations: 51.84 kB / 366.3 MB, free: 4.664 MB / 302.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.active,step.localActive,transition1.enableFire,initialStep.localActive,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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.0007208/0.1948, allocations: 0.8135 MB / 367.1 MB, free: 3.824 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004658/0.1953, allocations: 195.6 kB / 367.3 MB, free: 3.633 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1953, allocations: 0 / 367.3 MB, free: 3.633 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001576/0.1955, allocations: 75.92 kB / 367.3 MB, free: 3.559 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003275/0.1958, allocations: 23.97 kB / 367.4 MB, free: 3.535 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002636/0.1984, allocations: 2.119 MB / 369.5 MB, free: 1.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.1989, allocations: 0.7443 MB / 370.2 MB, free: 0.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.894e-05/0.199, allocations: 21.95 kB / 370.2 MB, free: 492 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.1991, allocations: 59.41 kB / 370.3 MB, free: 436 kB / 302.1 MB Notification: Performance of SimCode: time 1.193e-06/0.1991, allocations: 0 / 370.3 MB, free: 436 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1966/0.3957, allocations: 3.341 MB / 373.6 MB, free: 20.15 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001764/0.3959, allocations: 202.3 kB / 373.8 MB, free: 19.89 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.194/2.59, allocations: 0 / 373.8 MB, free: 19.89 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches