Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.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.001819/0.001819, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002118/0.002118, allocations: 207.1 kB / 23.73 MB, free: 4.379 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.563/1.563, allocations: 230.6 MB / 257.5 MB, free: 7.777 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.2638/0.2638, allocations: 46.96 MB / 360.9 MB, free: 4.02 MB / 286.1 MB " [Timeout remaining time 179] 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: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002102/0.002102, allocations: 67.91 kB / 0.4966 GB, free: 7.207 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4256/0.4277, allocations: 66.04 MB / 0.5611 GB, free: 4.176 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003436/0.4311, allocations: 1.527 MB / 0.5626 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.4323, allocations: 0.5222 MB / 0.5631 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.642e-05/0.4323, allocations: 3.938 kB / 0.5631 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.801e-05/0.4324, allocations: 7.875 kB / 0.5631 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.426e-05/0.4325, allocations: 19.84 kB / 0.5631 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002851/0.4328, allocations: 47.88 kB / 0.5631 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001556/0.4329, allocations: 91.77 kB / 0.5632 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.433, allocations: 8 kB / 0.5632 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001704/0.4332, allocations: 55.77 kB / 0.5633 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.4333, allocations: 39.83 kB / 0.5633 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.477e-05/0.4333, allocations: 8 kB / 0.5633 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.085e-05/0.4334, allocations: 12 kB / 0.5634 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.476e-05/0.4334, allocations: 27.84 kB / 0.5634 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.748e-05/0.4335, allocations: 31.86 kB / 0.5634 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001728/0.4336, allocations: 82.09 kB / 0.5635 GB, free: 1.688 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.4336, allocations: 0 / 0.5635 GB, free: 1.688 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4336, allocations: 4 kB / 0.5635 GB, free: 1.684 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.4337, allocations: 0 / 0.5635 GB, free: 1.684 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007727/0.4344, allocations: 330 kB / 0.5638 GB, free: 1.332 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.4345, allocations: 8.031 kB / 0.5638 GB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.4346, allocations: 20.88 kB / 0.5638 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002569/0.4349, allocations: 134.3 kB / 0.564 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.4349, allocations: 12.36 kB / 0.564 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.287e-05/0.4349, allocations: 16.31 kB / 0.564 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002271/0.4351, allocations: 89.95 kB / 0.5641 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.4352, allocations: 0 / 0.5641 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.4352, allocations: 0 / 0.5641 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.4352, allocations: 0 / 0.5641 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001457/0.4353, allocations: 51.97 kB / 0.5641 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005535/0.4359, allocations: 256.3 kB / 0.5644 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002363/0.4361, allocations: 98.41 kB / 0.5645 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.4362, allocations: 40.78 kB / 0.5645 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.244e-05/0.4362, allocations: 4 kB / 0.5645 GB, free: 0.543 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000205/0.4364, allocations: 103.1 kB / 0.5646 GB, free: 444 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.462e-06/0.4364, allocations: 0 / 0.5646 GB, free: 444 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005006/0.4369, allocations: 201.6 kB / 0.5648 GB, free: 236 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.954e-05/0.437, allocations: 55.41 kB / 0.5649 GB, free: 168 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.4371, allocations: 121.8 kB / 0.565 GB, free: 36 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.714e-05/0.4372, allocations: 33.75 kB / 0.565 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.179e-05/0.4372, allocations: 96.31 kB / 0.5651 GB, free: 15.89 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.855e-05/0.4373, allocations: 39.72 kB / 0.5651 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.087e-05/0.4373, allocations: 37.7 kB / 0.5652 GB, free: 15.81 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.4375, allocations: 326.8 kB / 0.5655 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.91e-05/0.4376, allocations: 36.2 kB / 0.5655 GB, free: 15.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.4377, allocations: 77.28 kB / 0.5656 GB, free: 15.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002441/0.438, allocations: 120.1 kB / 0.5657 GB, free: 15.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.438, allocations: 4 kB / 0.5657 GB, free: 15.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002994/0.4383, allocations: 153.5 kB / 0.5658 GB, free: 15.07 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.4383, allocations: 8 kB / 0.5659 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.4383, allocations: 0 / 0.5659 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.4383, allocations: 12.11 kB / 0.5659 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.4384, allocations: 15.94 kB / 0.5659 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.727e-06/0.4385, allocations: 7.984 kB / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.951e-05/0.4385, allocations: 15.89 kB / 0.5659 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.322e-05/0.4385, allocations: 4 kB / 0.5659 GB, free: 15 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample,$PRE.zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001204/0.4387, allocations: 135.8 kB / 0.566 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.22e-05/0.4387, allocations: 11.94 kB / 0.5661 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.187e-05/0.4387, allocations: 12.44 kB / 0.5661 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.4387, allocations: 4 kB / 0.5661 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.4387, allocations: 4 kB / 0.5661 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.4387, allocations: 3.938 kB / 0.5661 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000555/0.4393, allocations: 389.4 kB / 0.5664 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.788e-06/0.4393, allocations: 4 kB / 0.5664 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.357e-05/0.4393, allocations: 7.938 kB / 0.5665 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.4393, allocations: 0 / 0.5665 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.738e-05/0.4394, allocations: 15.92 kB / 0.5665 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.4394, allocations: 0 / 0.5665 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4394, allocations: 0 / 0.5665 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003832/0.4398, allocations: 263.5 kB / 0.5667 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.777e-05/0.4398, allocations: 7.953 kB / 0.5667 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.96e-05/0.4398, allocations: 11.92 kB / 0.5667 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.4399, allocations: 7.938 kB / 0.5668 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.795e-05/0.44, allocations: 15.97 kB / 0.5668 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.113e-05/0.44, allocations: 4 kB / 0.5668 GB, free: 14.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.474e-05/0.4401, allocations: 91.27 kB / 0.5669 GB, free: 13.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4401, allocations: 3.938 kB / 0.5669 GB, free: 13.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002493/0.4403, allocations: 24 kB / 0.5669 GB, free: 13.94 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001238/0.4404, allocations: 107.1 kB / 0.567 GB, free: 13.83 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002851/0.4407, allocations: 103.9 kB / 0.5671 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4407, allocations: 0 / 0.5671 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.4408, allocations: 47.92 kB / 0.5671 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.4411, allocations: 15.98 kB / 0.5671 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004753/0.4416, allocations: 207.7 kB / 0.5673 GB, free: 13.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.481e-05/0.4417, allocations: 87.31 kB / 0.5674 GB, free: 13.33 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.506e-05/0.4417, allocations: 8.984 kB / 0.5674 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.306e-05/0.4418, allocations: 15.42 kB / 0.5674 GB, free: 13.3 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.4418, allocations: 0 / 0.5674 GB, free: 13.3 MB / 414.1 MB Notification: Performance of Templates: time 0.004279/0.446, allocations: 1.143 MB / 0.5686 GB, free: 12.18 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.FirstOrderHold.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: 5.432565802242607]