Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",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.001554/0.001554, allocations: 101.2 kB / 16.27 MB, free: 5.961 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.001775/0.001775, allocations: 190.2 kB / 17.19 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.916/1.916, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2756/0.2756, allocations: 43.52 MB / 313.9 MB, free: 0.5352 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002213/0.002213, allocations: 66.59 kB / 382.8 MB, free: 56.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.1797, allocations: 57.79 MB / 440.6 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.004554/0.1844, allocations: 1.625 MB / 442.2 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.1858, allocations: 0.5892 MB / 442.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.1859, allocations: 4 kB / 442.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001563/0.1861, allocations: 11.86 kB / 442.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.859e-05/0.1862, allocations: 15.81 kB / 442.9 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004524/0.1866, allocations: 91.81 kB / 442.9 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001871/0.1868, allocations: 115.6 kB / 443.1 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.187, allocations: 31.97 kB / 443.1 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.293e-05/0.1871, allocations: 51.83 kB / 443.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.054e-05/0.1872, allocations: 39.84 kB / 443.2 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.74e-05/0.1872, allocations: 8 kB / 443.2 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.116e-05/0.1873, allocations: 8 kB / 443.2 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.709e-05/0.1873, allocations: 23.86 kB / 443.2 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.341e-05/0.1874, allocations: 43.67 kB / 443.3 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.1876, allocations: 83.75 kB / 443.3 MB, free: 4.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.1876, allocations: 0 / 443.3 MB, free: 4.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.529e-06/0.1877, allocations: 0 / 443.3 MB, free: 4.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.1877, allocations: 0 / 443.3 MB, free: 4.07 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007782/0.1885, allocations: 427 kB / 443.8 MB, free: 3.605 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.964e-05/0.1885, allocations: 11.89 kB / 443.8 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.847e-05/0.1886, allocations: 34.75 kB / 443.8 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.215e-05/0.1887, allocations: 12.84 kB / 443.8 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003055/0.189, allocations: 200.1 kB / 444 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.189, allocations: 8.375 kB / 444 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.578e-05/0.1891, allocations: 12.28 kB / 444 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003827/0.1895, allocations: 105.8 kB / 444.1 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.1895, allocations: 0 / 444.1 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/0.1895, allocations: 0 / 444.1 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.1895, allocations: 0 / 444.1 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002086/0.1897, allocations: 51.97 kB / 444.2 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000869/0.1906, allocations: 384.5 kB / 444.6 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004075/0.191, allocations: 102.5 kB / 444.7 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.1912, allocations: 36.91 kB / 444.7 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.1912, allocations: 3.938 kB / 444.7 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004159/0.1916, allocations: 107.3 kB / 444.8 MB, free: 2.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.943e-06/0.1917, allocations: 0 / 444.8 MB, free: 2.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005569/0.1922, allocations: 149.4 kB / 445 MB, free: 2.277 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.1923, allocations: 51.41 kB / 445 MB, free: 2.215 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.1924, allocations: 141.8 kB / 445.1 MB, free: 2.066 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.1924, allocations: 29.7 kB / 445.2 MB, free: 2.031 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.857e-05/0.1925, allocations: 104.1 kB / 445.3 MB, free: 1.926 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.362e-05/0.1925, allocations: 27.78 kB / 445.3 MB, free: 1.898 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.375e-05/0.1926, allocations: 21.7 kB / 445.3 MB, free: 1.871 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.897e-05/0.1927, allocations: 326.8 kB / 445.6 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.1929, allocations: 31.98 kB / 445.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.193, allocations: 49.69 kB / 445.7 MB, free: 1.457 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002506/0.1933, allocations: 85.73 kB / 445.8 MB, free: 1.367 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1933, allocations: 0 / 445.8 MB, free: 1.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003376/0.1936, allocations: 121.5 kB / 445.9 MB, free: 1.242 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.1937, allocations: 7.938 kB / 445.9 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.1937, allocations: 4 kB / 445.9 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.699e-05/0.1937, allocations: 0 / 445.9 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.1939, allocations: 19.92 kB / 446 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.1939, allocations: 0 / 446 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.194, allocations: 19.98 kB / 446 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-06/0.194, allocations: 0 / 446 MB, free: 1.191 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.000105/0.1941, allocations: 133.2 kB / 446.1 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.502e-05/0.1942, allocations: 19.75 kB / 446.1 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.397e-05/0.1942, allocations: 12.72 kB / 446.1 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.1942, allocations: 0 / 446.1 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.1942, allocations: 7.984 kB / 446.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.1943, allocations: 0 / 446.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005398/0.1948, allocations: 390.5 kB / 446.5 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1948, allocations: 0 / 446.5 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.994e-05/0.1949, allocations: 15.92 kB / 446.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.1949, allocations: 0 / 446.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.195, allocations: 0 / 446.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.195, allocations: 0 / 446.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.195, allocations: 4 kB / 446.5 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005257/0.1955, allocations: 247.3 kB / 446.8 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.295e-05/0.1956, allocations: 88.98 kB / 446.9 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.438e-05/0.1956, allocations: 0 / 446.9 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001802/0.1958, allocations: 28.03 kB / 446.9 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.558e-05/0.1959, allocations: 7.984 kB / 446.9 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.338e-06/0.1959, allocations: 4 kB / 446.9 MB, free: 156 kB / 318.1 MB Notification: Performance of sorting global known variables: time 8.216e-05/0.196, allocations: 116.6 kB / 447 MB, free: 40 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.196, allocations: 0 / 447 MB, free: 40 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003501/0.1963, allocations: 20 kB / 447 MB, free: 20 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001014/0.1974, allocations: 0.7869 MB / 447.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003983/0.1978, allocations: 95.94 kB / 447.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1978, allocations: 0 / 447.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000174/0.198, allocations: 35.97 kB / 448 MB, free: 15.08 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004445/0.1984, allocations: 29.3 kB / 448 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002822/0.2013, allocations: 1.628 MB / 449.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000431/0.2017, allocations: 0.7041 MB / 450.3 MB, free: 12.61 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.555e-05/0.2018, allocations: 8.422 kB / 450.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.188e-05/0.2019, allocations: 35.42 kB / 450.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2019, allocations: 0 / 450.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02616/0.2281, allocations: 2.613 MB / 453 MB, free: 9.961 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.401/8.629, allocations: 0 / 453 MB, free: 9.961 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches