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.001251/0.001251, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 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.001382/0.001382, allocations: 216.9 kB / 24.53 MB, free: 4.012 MB / 14.72 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 1.351/1.351, allocations: 230.5 MB / 258.2 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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.2105/0.2105, allocations: 46.92 MB / 361.6 MB, free: 4.18 MB / 286.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002145/0.002145, allocations: 79.88 kB / 0.497 GB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2844, allocations: 66.08 MB / 0.5615 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002728/0.2871, allocations: 1.644 MB / 0.5631 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008455/0.288, allocations: 0.5191 MB / 0.5636 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.787e-05/0.288, allocations: 7.938 kB / 0.5636 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.775e-05/0.2881, allocations: 11.86 kB / 0.5636 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.144e-05/0.2882, allocations: 11.88 kB / 0.5636 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001557/0.2883, allocations: 31.91 kB / 0.5637 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001388/0.2885, allocations: 87.75 kB / 0.5637 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.866e-05/0.2886, allocations: 22.05 kB / 0.5638 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.344e-05/0.2886, allocations: 23.92 kB / 0.5638 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.445e-05/0.2887, allocations: 35.78 kB / 0.5638 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.733e-05/0.2887, allocations: 8 kB / 0.5638 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.167e-05/0.2887, allocations: 4 kB / 0.5638 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.319e-05/0.2887, allocations: 15.98 kB / 0.5639 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.712e-05/0.2888, allocations: 43.67 kB / 0.5639 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001335/0.2889, allocations: 79.66 kB / 0.564 GB, free: 1.734 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2889, allocations: 0 / 0.564 GB, free: 1.734 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2889, allocations: 0 / 0.564 GB, free: 1.734 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.2889, allocations: 0 / 0.564 GB, free: 1.734 MB / 398.1 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.0005116/0.2894, allocations: 326.8 kB / 0.5643 GB, free: 1.383 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.2895, allocations: 11.97 kB / 0.5643 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.55e-05/0.2895, allocations: 4.188 kB / 0.5643 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.057e-05/0.2895, allocations: 38.73 kB / 0.5643 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.961e-05/0.2895, allocations: 16.89 kB / 0.5643 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002005/0.2897, allocations: 134.3 kB / 0.5645 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.2898, allocations: 8.375 kB / 0.5645 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.587e-05/0.2898, allocations: 12.36 kB / 0.5645 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001549/0.2899, allocations: 73.61 kB / 0.5646 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.2899, allocations: 0 / 0.5646 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.29, allocations: 0 / 0.5646 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.29, allocations: 4 kB / 0.5646 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.158e-05/0.29, allocations: 35.98 kB / 0.5646 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005525/0.2906, allocations: 323.6 kB / 0.5649 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001174/0.2907, allocations: 54.5 kB / 0.565 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.62e-05/0.2907, allocations: 16.89 kB / 0.565 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.474e-06/0.2908, allocations: 0 / 0.565 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001259/0.2909, allocations: 71.44 kB / 0.565 GB, free: 500 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.2909, allocations: 0 / 0.565 GB, free: 500 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002198/0.2911, allocations: 93.48 kB / 0.5651 GB, free: 400 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.2911, allocations: 55.41 kB / 0.5652 GB, free: 332 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.2913, allocations: 135.9 kB / 0.5653 GB, free: 188 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.078e-05/0.2913, allocations: 33.7 kB / 0.5654 GB, free: 148 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.382e-05/0.2914, allocations: 100.1 kB / 0.5654 GB, free: 44 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.2914, allocations: 15.98 kB / 0.5655 GB, free: 28 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-05/0.2914, allocations: 29.7 kB / 0.5655 GB, free: 15.99 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.2916, allocations: 322.8 kB / 0.5658 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.024e-05/0.2916, allocations: 19.94 kB / 0.5658 GB, free: 15.65 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.395e-05/0.2917, allocations: 34.56 kB / 0.5659 GB, free: 15.61 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.905e-05/0.2918, allocations: 54.52 kB / 0.5659 GB, free: 15.54 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2918, allocations: 0 / 0.5659 GB, free: 15.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001484/0.2919, allocations: 93.52 kB / 0.566 GB, free: 15.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.2919, allocations: 7.938 kB / 0.566 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.2919, allocations: 4 kB / 0.566 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.292, allocations: 3.984 kB / 0.566 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.391e-05/0.292, allocations: 8 kB / 0.566 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.343e-06/0.292, allocations: 4.328 kB / 0.566 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.863e-05/0.2921, allocations: 4.188 kB / 0.566 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.288e-06/0.2921, allocations: 12.06 kB / 0.566 GB, free: 15.4 MB / 414.1 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 9.504e-05/0.2922, allocations: 121.8 kB / 0.5662 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.933e-05/0.2922, allocations: 15.88 kB / 0.5662 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.944e-05/0.2923, allocations: 12.72 kB / 0.5662 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2923, allocations: 0 / 0.5662 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.2923, allocations: 0 / 0.5662 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.2923, allocations: 0 / 0.5662 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003608/0.2926, allocations: 329.4 kB / 0.5665 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2926, allocations: 0 / 0.5665 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.672e-05/0.2927, allocations: 8 kB / 0.5665 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2927, allocations: 0 / 0.5665 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.2927, allocations: 3.984 kB / 0.5665 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.2927, allocations: 0 / 0.5665 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.02e-07/0.2927, allocations: 0 / 0.5665 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000238/0.2929, allocations: 195.4 kB / 0.5667 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.807e-05/0.293, allocations: 15.92 kB / 0.5667 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.194e-05/0.293, allocations: 4 kB / 0.5667 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.499e-05/0.2931, allocations: 8.062 kB / 0.5667 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.534e-05/0.2931, allocations: 7.984 kB / 0.5667 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.2931, allocations: 7.984 kB / 0.5667 GB, free: 14.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.465e-05/0.2932, allocations: 105.8 kB / 0.5668 GB, free: 14.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2932, allocations: 0 / 0.5668 GB, free: 14.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002275/0.2934, allocations: 19.94 kB / 0.5669 GB, free: 14.48 MB / 414.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,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.0005475/0.294, allocations: 0.7163 MB / 0.5676 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001372/0.2941, allocations: 47.91 kB / 0.5676 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2941, allocations: 0 / 0.5676 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.515e-05/0.2942, allocations: 23.92 kB / 0.5676 GB, free: 13.67 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/0.2945, allocations: 18.73 kB / 0.5676 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.2961, allocations: 1.514 MB / 0.5691 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003663/0.2965, allocations: 0.7001 MB / 0.5698 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.782e-05/0.2965, allocations: 4.438 kB / 0.5698 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.13e-05/0.2966, allocations: 27.61 kB / 0.5698 GB, free: 11.29 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2966, allocations: 0 / 0.5698 GB, free: 11.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02144/0.318, allocations: 2.397 MB / 0.5722 GB, free: 9 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.21/10.52, allocations: 14.62 kB / 0.5722 GB, free: 8.992 MB / 414.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/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: 13.272627205995377]