Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9496/0.9496, allocations: 177.1 MB / 204.3 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2619/0.2619, allocations: 32.79 MB / 293.5 MB, free: 1.234 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.334e-06/2.334e-06, allocations: 0 / 439.6 MB, free: 4.297 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.316e-05/2.55e-05, allocations: 2.281 kB / 439.6 MB, free: 4.293 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003076/0.003101, allocations: 1.629 MB / 441.2 MB, free: 2.652 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008116/0.003913, allocations: 0.5608 MB / 441.8 MB, free: 2.086 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.936e-05/0.004002, allocations: 4 kB / 441.8 MB, free: 2.082 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.004123, allocations: 19.86 kB / 441.8 MB, free: 2.062 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.48e-05/0.004168, allocations: 11.81 kB / 441.8 MB, free: 2.051 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003444/0.004512, allocations: 95.42 kB / 441.9 MB, free: 1.961 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001601/0.004672, allocations: 115.7 kB / 442 MB, free: 1.848 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.004794, allocations: 19.98 kB / 442 MB, free: 1.828 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.004898, allocations: 71.75 kB / 442.1 MB, free: 1.758 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.77e-05/0.004955, allocations: 19.97 kB / 442.1 MB, free: 1.738 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.509e-05/0.00498, allocations: 8 kB / 442.1 MB, free: 1.73 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.197e-05/0.004992, allocations: 15.94 kB / 442.1 MB, free: 1.715 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.25e-05/0.005015, allocations: 19.97 kB / 442.1 MB, free: 1.695 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.555e-05/0.00505, allocations: 23.92 kB / 442.2 MB, free: 1.672 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001365/0.005187, allocations: 99.67 kB / 442.3 MB, free: 1.574 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.00519, allocations: 0 / 442.3 MB, free: 1.574 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.005191, allocations: 0 / 442.3 MB, free: 1.574 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.005196, allocations: 0 / 442.3 MB, free: 1.574 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004975/0.005693, allocations: 350.8 kB / 442.6 MB, free: 1.199 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.009e-05/0.005733, allocations: 12.02 kB / 442.6 MB, free: 1.188 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.914e-05/0.005773, allocations: 38.75 kB / 442.7 MB, free: 1.141 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.169e-05/0.005804, allocations: 8.891 kB / 442.7 MB, free: 1.133 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002315/0.006036, allocations: 145.5 kB / 442.8 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.006053, allocations: 8.312 kB / 442.8 MB, free: 0.957 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.939e-05/0.006072, allocations: 8.375 kB / 442.8 MB, free: 0.9492 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.006267, allocations: 102.2 kB / 442.9 MB, free: 0.8438 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.006274, allocations: 4.188 kB / 442.9 MB, free: 0.8398 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.006287, allocations: 8.125 kB / 442.9 MB, free: 0.832 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.006292, allocations: 0 / 442.9 MB, free: 0.832 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001065/0.006399, allocations: 59 kB / 443 MB, free: 0.7773 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004967/0.006896, allocations: 339.6 kB / 443.3 MB, free: 412 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002008/0.007096, allocations: 98.45 kB / 443.4 MB, free: 304 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.416e-05/0.007161, allocations: 44.91 kB / 443.5 MB, free: 256 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.137e-05/0.007172, allocations: 0 / 443.5 MB, free: 256 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001635/0.007336, allocations: 91.36 kB / 443.6 MB, free: 152 kB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/0.007337, allocations: 7.938 kB / 443.6 MB, free: 144 kB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.1877/0.195, allocations: 143.8 kB / 443.7 MB, free: 46.63 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/0.1951, allocations: 54.34 kB / 443.8 MB, free: 46.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.1952, allocations: 147.5 kB / 443.9 MB, free: 46.47 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.889e-05/0.1952, allocations: 30.14 kB / 443.9 MB, free: 46.44 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.06e-05/0.1953, allocations: 100.5 kB / 444 MB, free: 46.36 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.989e-05/0.1953, allocations: 14.42 kB / 444 MB, free: 46.36 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.832e-05/0.1953, allocations: 27.23 kB / 444.1 MB, free: 46.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.798e-05/0.1953, allocations: 324.5 kB / 444.4 MB, free: 46.03 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.1955, allocations: 32.64 kB / 444.4 MB, free: 46.03 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.235e-05/0.1955, allocations: 52.66 kB / 444.5 MB, free: 46.01 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001221/0.1956, allocations: 76.91 kB / 444.5 MB, free: 46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.1957, allocations: 0.6875 kB / 444.5 MB, free: 46 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001747/0.1958, allocations: 126.4 kB / 444.7 MB, free: 45.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.1958, allocations: 5.875 kB / 444.7 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.1958, allocations: 3.594 kB / 444.7 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.1959, allocations: 0.9375 kB / 444.7 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.401e-05/0.1959, allocations: 21.12 kB / 444.7 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.1959, allocations: 0.6562 kB / 444.7 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.412e-05/0.196, allocations: 27.28 kB / 444.7 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.196, allocations: 7.047 kB / 444.7 MB, free: 45.96 MB / 410.7 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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.u,$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 5.944e-05/0.1961, allocations: 113.8 kB / 444.8 MB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.6e-05/0.1961, allocations: 17.06 kB / 444.9 MB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.247e-05/0.1961, allocations: 17.59 kB / 444.9 MB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.1961, allocations: 0 / 444.9 MB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.1961, allocations: 1.688 kB / 444.9 MB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1961, allocations: 0 / 444.9 MB, free: 45.85 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003387/0.1965, allocations: 357.6 kB / 445.2 MB, free: 45.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1965, allocations: 0 / 445.2 MB, free: 45.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.297e-05/0.1965, allocations: 16.77 kB / 445.2 MB, free: 45.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.1965, allocations: 5.219 kB / 445.3 MB, free: 45.59 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.1965, allocations: 0 / 445.3 MB, free: 45.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1965, allocations: 0 / 445.3 MB, free: 45.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1965, allocations: 0 / 445.3 MB, free: 45.59 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002502/0.1968, allocations: 253.2 kB / 445.5 MB, free: 45.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.558e-05/0.1968, allocations: 10.88 kB / 445.5 MB, free: 45.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.1968, allocations: 2.906 kB / 445.5 MB, free: 45.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.957e-05/0.1969, allocations: 22.22 kB / 445.5 MB, free: 45.45 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.955e-05/0.1969, allocations: 13.59 kB / 445.5 MB, free: 45.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.1969, allocations: 6.812 kB / 445.6 MB, free: 45.45 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.235e-05/0.197, allocations: 112.7 kB / 445.7 MB, free: 45.37 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.197, allocations: 2.906 kB / 445.7 MB, free: 45.37 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001612/0.1971, allocations: 22.7 kB / 445.7 MB, free: 45.37 MB / 410.7 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,change.u,booleanPulse.pulseStart) * 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.0003307/0.1975, allocations: 0.7727 MB / 446.5 MB, free: 44.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001673/0.1976, allocations: 86.56 kB / 446.5 MB, free: 44.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1976, allocations: 0 / 446.5 MB, free: 44.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.771e-05/0.1977, allocations: 41.58 kB / 446.6 MB, free: 44.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.198, allocations: 20.36 kB / 446.6 MB, free: 44.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001288/0.1993, allocations: 1.703 MB / 448.3 MB, free: 43.42 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.73e-05/0.1993, allocations: 92.59 kB / 448.4 MB, free: 43.34 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.431e-05/0.1994, allocations: 10.02 kB / 448.4 MB, free: 43.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.325e-05/0.1994, allocations: 36.41 kB / 448.4 MB, free: 43.32 MB / 410.7 MB Notification: Performance of SimCode: time 6.71e-07/0.1994, allocations: 0 / 448.4 MB, free: 43.32 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01798/0.2174, allocations: 3.373 MB / 451.8 MB, free: 42.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.624/6.841, allocations: 10.81 kB / 451.8 MB, free: 42.35 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.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.92129120323807]