Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.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.0008187/0.0008187, allocations: 80.34 kB / 20.67 MB, free: 3.895 MB / 18.57 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.001211/0.001211, allocations: 160.9 kB / 23.95 MB, free: 0.6172 MB / 18.57 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 0.8667/0.8667, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2516/0.2516, allocations: 34.24 MB / 294.8 MB, free: 0.6992 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 442.1 MB, free: 1.602 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.516e-05/1.727e-05, allocations: 6.219 kB / 442.1 MB, free: 1.594 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001767/0.001784, allocations: 1.463 MB / 443.6 MB, free: 120 kB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1807/0.1824, allocations: 449.9 kB / 444 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.186e-05/0.1825, allocations: 2.781 kB / 444 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 3.086e-05/0.1826, allocations: 5.297 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.84e-05/0.1826, allocations: 4.953 kB / 444.1 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002632/0.1829, allocations: 35.11 kB / 444.1 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001122/0.183, allocations: 38.25 kB / 444.1 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.973e-05/0.1831, allocations: 6.125 kB / 444.1 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.1832, allocations: 29.16 kB / 444.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.837e-05/0.1833, allocations: 12.14 kB / 444.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.757e-05/0.1833, allocations: 2.969 kB / 444.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.185e-05/0.1833, allocations: 8 kB / 444.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.233e-05/0.1833, allocations: 15.47 kB / 444.2 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.93e-05/0.1834, allocations: 6.531 kB / 444.2 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.1835, allocations: 41.81 kB / 444.2 MB, free: 43.23 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1835, allocations: 0 / 444.2 MB, free: 43.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1835, allocations: 0.625 kB / 444.2 MB, free: 43.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.1835, allocations: 3.562 kB / 444.3 MB, free: 43.23 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003239/0.1838, allocations: 278.9 kB / 444.5 MB, free: 42.97 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.1838, allocations: 8.031 kB / 444.5 MB, free: 42.97 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.418e-05/0.1839, allocations: 34.69 kB / 444.6 MB, free: 42.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.184, allocations: 12.33 kB / 444.6 MB, free: 42.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.1842, allocations: 121.9 kB / 444.7 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-06/0.1842, allocations: 6.156 kB / 444.7 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.416e-06/0.1842, allocations: 3.469 kB / 444.7 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001394/0.1843, allocations: 86 kB / 444.8 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.1843, allocations: 192 / 444.8 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.1843, allocations: 7.469 kB / 444.8 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.1843, allocations: 2.094 kB / 444.8 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.364e-05/0.1844, allocations: 18.08 kB / 444.8 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002472/0.1846, allocations: 230.2 kB / 445 MB, free: 42.48 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.065e-05/0.1847, allocations: 31.36 kB / 445.1 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.861e-05/0.1847, allocations: 20.72 kB / 445.1 MB, free: 42.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.1848, allocations: 0.5 kB / 445.1 MB, free: 42.45 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.1848, allocations: 33.62 kB / 445.1 MB, free: 42.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.1848, allocations: 1.125 kB / 445.1 MB, free: 42.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001835/0.185, allocations: 74.38 kB / 445.2 MB, free: 42.36 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.663e-05/0.185, allocations: 77.11 kB / 445.3 MB, free: 42.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.788e-05/0.185, allocations: 111.6 kB / 445.4 MB, free: 42.17 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.817e-06/0.185, allocations: 28.67 kB / 445.4 MB, free: 42.14 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.336e-05/0.1851, allocations: 84.08 kB / 445.5 MB, free: 42.06 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.608e-05/0.1851, allocations: 11.34 kB / 445.5 MB, free: 42.05 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.532e-05/0.1851, allocations: 15.91 kB / 445.5 MB, free: 42.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.873e-05/0.1851, allocations: 313.6 kB / 445.8 MB, free: 41.73 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.516e-05/0.1852, allocations: 12.17 kB / 445.8 MB, free: 41.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.389e-05/0.1852, allocations: 54.23 kB / 445.9 MB, free: 41.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.541e-05/0.1852, allocations: 33.06 kB / 445.9 MB, free: 41.66 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1853, allocations: 4.688 kB / 445.9 MB, free: 41.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.696e-05/0.1853, allocations: 58.2 kB / 446 MB, free: 41.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.1853, allocations: 5.219 kB / 446 MB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1853, allocations: 1.875 kB / 446 MB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.1854, allocations: 0 / 446 MB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.225e-05/0.1854, allocations: 8.625 kB / 446 MB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.1854, allocations: 0 / 446 MB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.929e-05/0.1854, allocations: 15.39 kB / 446 MB, free: 41.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.1855, allocations: 4.844 kB / 446 MB, free: 41.62 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 4.327e-05/0.1855, allocations: 108.6 kB / 446.1 MB, free: 41.51 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.436e-05/0.1855, allocations: 10.61 kB / 446.1 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.235e-05/0.1855, allocations: 9.812 kB / 446.1 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.1855, allocations: 0 / 446.1 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1855, allocations: 3.094 kB / 446.1 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.1855, allocations: 0 / 446.1 MB, free: 41.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.148e-05/0.1856, allocations: 127.7 kB / 446.3 MB, free: 41.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.1856, allocations: 7.875 kB / 446.3 MB, free: 41.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.744e-05/0.1856, allocations: 7.031 kB / 446.3 MB, free: 41.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.1856, allocations: 4 kB / 446.3 MB, free: 41.33 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.1857, allocations: 3.094 kB / 446.3 MB, free: 41.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-07/0.1857, allocations: 2.625 kB / 446.3 MB, free: 41.33 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1857, allocations: 0 / 446.3 MB, free: 41.33 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.766e-05/0.1857, allocations: 149.4 kB / 446.4 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.504e-06/0.1857, allocations: 10.67 kB / 446.5 MB, free: 41.19 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.349e-05/0.1858, allocations: 0 / 446.5 MB, free: 41.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.077e-05/0.1858, allocations: 11.97 kB / 446.5 MB, free: 41.19 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.551e-05/0.1858, allocations: 13.52 kB / 446.5 MB, free: 41.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.1858, allocations: 0 / 446.5 MB, free: 41.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.223e-05/0.1859, allocations: 92.92 kB / 446.6 MB, free: 41.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1859, allocations: 0 / 446.6 MB, free: 41.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001472/0.186, allocations: 13.31 kB / 446.6 MB, free: 41.11 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0001998/0.1862, allocations: 0.6727 MB / 447.3 MB, free: 40.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001103/0.1863, allocations: 26.41 kB / 447.3 MB, free: 40.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1863, allocations: 0 / 447.3 MB, free: 40.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.458e-05/0.1863, allocations: 19.89 kB / 447.3 MB, free: 40.44 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001705/0.1865, allocations: 10.66 kB / 447.3 MB, free: 40.44 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006594/0.1872, allocations: 1.251 MB / 448.6 MB, free: 39.29 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.206e-05/0.1872, allocations: 67.45 kB / 448.6 MB, free: 39.22 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.844e-05/0.1872, allocations: 0 / 448.6 MB, free: 39.22 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.934e-05/0.1873, allocations: 22.34 kB / 448.6 MB, free: 39.21 MB / 410.7 MB Notification: Performance of SimCode: time 5.01e-07/0.1873, allocations: 0 / 448.6 MB, free: 39.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01358/0.2009, allocations: 2.227 MB / 450.9 MB, free: 38.33 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.8/7.001, allocations: 19.59 kB / 450.9 MB, free: 38.32 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.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: 8.895533264614642]