Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.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.002202/0.002202, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 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.002533/0.002533, allocations: 211.9 kB / 24.51 MB, free: 3.941 MB / 14.72 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 1.556/1.556, allocations: 230.6 MB / 258.3 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.24/0.24, allocations: 46.97 MB / 361.7 MB, free: 4.035 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 63.91 kB / 0.4969 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3711/0.3731, allocations: 66.03 MB / 0.5613 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003083/0.3762, allocations: 1.605 MB / 0.5629 GB, free: 2.602 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.3772, allocations: 499.7 kB / 0.5634 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.089e-05/0.3773, allocations: 4 kB / 0.5634 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.3775, allocations: 11.86 kB / 0.5634 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.82e-05/0.3775, allocations: 7.875 kB / 0.5634 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001788/0.3777, allocations: 31.91 kB / 0.5634 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001475/0.3778, allocations: 79.83 kB / 0.5635 GB, free: 1.977 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.3779, allocations: 26.03 kB / 0.5635 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.29e-05/0.378, allocations: 35.8 kB / 0.5636 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.397e-05/0.3781, allocations: 23.86 kB / 0.5636 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.609e-05/0.3781, allocations: 12 kB / 0.5636 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.421e-05/0.3781, allocations: 7.938 kB / 0.5636 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.893e-05/0.3781, allocations: 15.98 kB / 0.5636 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.146e-05/0.3782, allocations: 35.78 kB / 0.5637 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001469/0.3783, allocations: 75.66 kB / 0.5637 GB, free: 1.746 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3783, allocations: 0 / 0.5637 GB, free: 1.746 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3783, allocations: 0 / 0.5637 GB, free: 1.746 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.3783, allocations: 0 / 0.5637 GB, free: 1.746 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.0006018/0.3789, allocations: 330.8 kB / 0.5641 GB, free: 1.391 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.379, allocations: 12.03 kB / 0.5641 GB, free: 1.379 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.515e-05/0.379, allocations: 4.188 kB / 0.5641 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.963e-05/0.379, allocations: 42.73 kB / 0.5641 GB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.457e-05/0.3791, allocations: 8.891 kB / 0.5641 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002477/0.3793, allocations: 142.3 kB / 0.5643 GB, free: 1.152 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.3793, allocations: 8.375 kB / 0.5643 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.138e-05/0.3794, allocations: 4.375 kB / 0.5643 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000162/0.3795, allocations: 88.34 kB / 0.5644 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.3795, allocations: 0 / 0.5644 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-06/0.3795, allocations: 0 / 0.5644 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.3795, allocations: 4 kB / 0.5644 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.104e-05/0.3796, allocations: 35.98 kB / 0.5644 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005641/0.3802, allocations: 311.6 kB / 0.5647 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000108/0.3803, allocations: 42.62 kB / 0.5647 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.575e-05/0.3803, allocations: 16.88 kB / 0.5647 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.174e-05/0.3804, allocations: 0 / 0.5647 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002081/0.3806, allocations: 75.27 kB / 0.5648 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.3806, allocations: 0 / 0.5648 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002209/0.3808, allocations: 89.58 kB / 0.5649 GB, free: 424 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.3808, allocations: 55.39 kB / 0.565 GB, free: 356 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001339/0.381, allocations: 140.6 kB / 0.5651 GB, free: 208 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.381, allocations: 25.7 kB / 0.5651 GB, free: 176 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.469e-05/0.3811, allocations: 104.1 kB / 0.5652 GB, free: 68 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.783e-05/0.3811, allocations: 23.91 kB / 0.5652 GB, free: 44 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.597e-05/0.3811, allocations: 29.72 kB / 0.5653 GB, free: 8 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.3813, allocations: 322.8 kB / 0.5656 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.085e-05/0.3813, allocations: 15.98 kB / 0.5656 GB, free: 15.67 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.501e-05/0.3814, allocations: 38.52 kB / 0.5656 GB, free: 15.62 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.537e-05/0.3815, allocations: 54.56 kB / 0.5657 GB, free: 15.56 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3815, allocations: 0 / 0.5657 GB, free: 15.56 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001404/0.3816, allocations: 85.53 kB / 0.5658 GB, free: 15.47 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.3816, allocations: 11.94 kB / 0.5658 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.3816, allocations: 3.938 kB / 0.5658 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.3817, allocations: 0 / 0.5658 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.588e-05/0.3817, allocations: 8 kB / 0.5658 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.3817, allocations: 0 / 0.5658 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.827e-05/0.3818, allocations: 11.98 kB / 0.5658 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.3818, allocations: 12.06 kB / 0.5658 GB, free: 15.42 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 0.0001046/0.3819, allocations: 113.8 kB / 0.5659 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.888e-05/0.3819, allocations: 11.89 kB / 0.5659 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.73e-05/0.382, allocations: 16.7 kB / 0.5659 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-06/0.382, allocations: 0 / 0.5659 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.382, allocations: 0 / 0.5659 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.382, allocations: 0 / 0.5659 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003733/0.3823, allocations: 321.4 kB / 0.5662 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3823, allocations: 0 / 0.5662 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.73e-05/0.3824, allocations: 4 kB / 0.5662 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3824, allocations: 4 kB / 0.5663 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.3824, allocations: 7.984 kB / 0.5663 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.3824, allocations: 480 / 0.5663 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3824, allocations: 0 / 0.5663 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000241/0.3827, allocations: 203.4 kB / 0.5665 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2e-05/0.3827, allocations: 12.12 kB / 0.5665 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.3827, allocations: 4 kB / 0.5665 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.979e-05/0.3828, allocations: 11.92 kB / 0.5665 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.506e-05/0.3828, allocations: 7.984 kB / 0.5665 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.804e-06/0.3828, allocations: 7.938 kB / 0.5665 GB, free: 14.63 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.679e-05/0.3829, allocations: 103.3 kB / 0.5666 GB, free: 14.53 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3829, allocations: 4.062 kB / 0.5666 GB, free: 14.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002309/0.3831, allocations: 16 kB / 0.5666 GB, free: 14.51 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.0005196/0.3837, allocations: 0.7163 MB / 0.5673 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001292/0.3838, allocations: 47.91 kB / 0.5674 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3838, allocations: 0 / 0.5674 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.145e-05/0.3838, allocations: 23.98 kB / 0.5674 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.3842, allocations: 18.17 kB / 0.5674 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001715/0.3859, allocations: 1.514 MB / 0.5689 GB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001449/0.386, allocations: 87.7 kB / 0.569 GB, free: 11.97 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.405e-05/0.3861, allocations: 4.438 kB / 0.569 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.923e-05/0.3861, allocations: 27.42 kB / 0.569 GB, free: 11.94 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3861, allocations: 0 / 0.569 GB, free: 11.94 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02307/0.4092, allocations: 2.467 MB / 0.5714 GB, free: 9.621 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.79, allocations: 8 kB / 0.5714 GB, free: 9.613 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000997805 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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: 14.991129369009286]