Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.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.000911/0.000911, allocations: 80.34 kB / 20.67 MB, free: 3.891 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.001112/0.001112, allocations: 156.9 kB / 23.95 MB, free: 0.6133 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.9368/0.9368, allocations: 177 MB / 204.1 MB, free: 5.75 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.2802/0.2802, allocations: 34.24 MB / 294.8 MB, free: 0.6719 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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.686e-06/2.686e-06, allocations: 4 kB / 442.1 MB, free: 1.578 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.05e-05/2.318e-05, allocations: 9.172 kB / 442.1 MB, free: 1.57 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.201/0.2011, allocations: 1.611 MB / 443.8 MB, free: 43.27 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007918/0.2019, allocations: 496.8 kB / 444.2 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.077e-05/0.2019, allocations: 3.938 kB / 444.2 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001139/0.2021, allocations: 14.62 kB / 444.3 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.134e-05/0.2021, allocations: 12.11 kB / 444.3 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000169/0.2023, allocations: 41.78 kB / 444.3 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001141/0.2024, allocations: 78.94 kB / 444.4 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.2025, allocations: 23.22 kB / 444.4 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.494e-05/0.2026, allocations: 45.58 kB / 444.5 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.427e-05/0.2026, allocations: 18.62 kB / 444.5 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.2026, allocations: 9.812 kB / 444.5 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.049e-05/0.2026, allocations: 9.562 kB / 444.5 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.169e-05/0.2027, allocations: 15.62 kB / 444.5 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.115e-05/0.2027, allocations: 21.11 kB / 444.5 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000126/0.2028, allocations: 80.02 kB / 444.6 MB, free: 43.18 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2028, allocations: 3.25 kB / 444.6 MB, free: 43.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2028, allocations: 0 / 444.6 MB, free: 43.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.2028, allocations: 0 / 444.6 MB, free: 43.18 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004197/0.2033, allocations: 332.6 kB / 444.9 MB, free: 42.89 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.2033, allocations: 11.56 kB / 444.9 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.33e-05/0.2033, allocations: 34.19 kB / 445 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.805e-05/0.2033, allocations: 10.33 kB / 445 MB, free: 42.85 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002088/0.2036, allocations: 127 kB / 445.1 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.2036, allocations: 9.094 kB / 445.1 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.916e-05/0.2036, allocations: 12.86 kB / 445.1 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001152/0.2037, allocations: 76.17 kB / 445.2 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.2037, allocations: 1.922 kB / 445.2 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.2037, allocations: 14.69 kB / 445.2 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.2037, allocations: 0 / 445.2 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.959e-05/0.2038, allocations: 32.67 kB / 445.3 MB, free: 42.68 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003905/0.2042, allocations: 314.5 kB / 445.6 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.549e-05/0.2043, allocations: 42.56 kB / 445.6 MB, free: 42.4 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.106e-05/0.2043, allocations: 18.81 kB / 445.6 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.009e-05/0.2043, allocations: 0 / 445.6 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001084/0.2044, allocations: 72.36 kB / 445.7 MB, free: 42.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.2044, allocations: 0 / 445.7 MB, free: 42.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001733/0.2046, allocations: 91.86 kB / 445.8 MB, free: 42.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.756e-05/0.2046, allocations: 51.41 kB / 445.8 MB, free: 42.24 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.801e-05/0.2047, allocations: 142.4 kB / 446 MB, free: 42.14 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.226e-06/0.2047, allocations: 29.58 kB / 446 MB, free: 42.11 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.309e-05/0.2047, allocations: 97.8 kB / 446.1 MB, free: 42.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.2047, allocations: 21.56 kB / 446.1 MB, free: 42.01 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.988e-05/0.2048, allocations: 28.95 kB / 446.1 MB, free: 42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.48e-05/0.2048, allocations: 320.8 kB / 446.5 MB, free: 41.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.661e-05/0.2048, allocations: 13.5 kB / 446.5 MB, free: 41.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.118e-05/0.2048, allocations: 41.94 kB / 446.5 MB, free: 41.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.996e-05/0.2049, allocations: 53.7 kB / 446.6 MB, free: 41.63 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2049, allocations: 0 / 446.6 MB, free: 41.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 8.497e-05/0.205, allocations: 89.92 kB / 446.7 MB, free: 41.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.205, allocations: 5.969 kB / 446.7 MB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.205, allocations: 2.906 kB / 446.7 MB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.205, allocations: 9.438 kB / 446.7 MB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.574e-05/0.2051, allocations: 8.922 kB / 446.7 MB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.2051, allocations: 3.938 kB / 446.7 MB, free: 41.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.753e-05/0.2051, allocations: 17.81 kB / 446.7 MB, free: 41.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.71e-06/0.2051, allocations: 2.812 kB / 446.7 MB, free: 41.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_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 4.797e-05/0.2052, allocations: 122.7 kB / 446.8 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.947e-06/0.2052, allocations: 6.859 kB / 446.8 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.69e-05/0.2052, allocations: 10.94 kB / 446.8 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.2052, allocations: 0 / 446.8 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.2052, allocations: 6.938 kB / 446.8 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.2052, allocations: 0 / 446.8 MB, free: 41.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002099/0.2054, allocations: 312.9 kB / 447.2 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2054, allocations: 3.031 kB / 447.2 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.718e-05/0.2055, allocations: 6.875 kB / 447.2 MB, free: 41.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2055, allocations: 3.938 kB / 447.2 MB, free: 41.17 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.755e-06/0.2055, allocations: 3.375 kB / 447.2 MB, free: 41.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.2055, allocations: 2.75 kB / 447.2 MB, free: 41.17 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2055, allocations: 3.375 kB / 447.2 MB, free: 41.17 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001228/0.2056, allocations: 186 kB / 447.4 MB, free: 41.03 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.14e-05/0.2056, allocations: 9.422 kB / 447.4 MB, free: 41.03 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.2056, allocations: 3.938 kB / 447.4 MB, free: 41.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.005e-05/0.2057, allocations: 8.531 kB / 447.4 MB, free: 41.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.847e-05/0.2057, allocations: 8.906 kB / 447.4 MB, free: 41.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.122e-06/0.2057, allocations: 7 kB / 447.4 MB, free: 41.02 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.707e-05/0.2058, allocations: 116 kB / 447.5 MB, free: 40.94 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2058, allocations: 0 / 447.5 MB, free: 40.94 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001578/0.2059, allocations: 10.72 kB / 447.5 MB, free: 40.94 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,fallingEdge.not_u,booleanPulse.pulseStart) * Number of discrete states: 1 (fallingEdge.not_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.0002237/0.2061, allocations: 0.7264 MB / 448.2 MB, free: 40.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001021/0.2062, allocations: 48.36 kB / 448.3 MB, free: 40.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.2062, allocations: 0 / 448.3 MB, free: 40.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.323e-05/0.2063, allocations: 17.38 kB / 448.3 MB, free: 40.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002294/0.2065, allocations: 23.75 kB / 448.3 MB, free: 40.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008788/0.2074, allocations: 1.512 MB / 449.8 MB, free: 39.01 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.981e-05/0.2074, allocations: 77.05 kB / 449.9 MB, free: 38.94 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.466e-05/0.2075, allocations: 13.19 kB / 449.9 MB, free: 38.94 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.291e-05/0.2075, allocations: 25.81 kB / 450 MB, free: 38.92 MB / 410.7 MB Notification: Performance of SimCode: time 6.61e-07/0.2075, allocations: 0 / 450 MB, free: 38.92 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02037/0.2279, allocations: 2.957 MB / 452.9 MB, free: 37.94 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.595/6.823, allocations: 10.62 kB / 452.9 MB, free: 37.94 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000997805 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.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.893632092513144]