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.001765/0.001765, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 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.002064/0.002064, allocations: 169.2 kB / 24.5 MB, free: 3.453 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.508/1.508, allocations: 177.2 MB / 204.9 MB, free: 8.961 MB / 190.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.2192/0.2192, allocations: 34.27 MB / 295.5 MB, free: 14.6 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.002287/0.002287, allocations: 71.89 kB / 443.1 MB, free: 6.738 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3338, allocations: 66.02 MB / 0.4972 GB, free: 29.89 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.00273/0.3365, allocations: 1.527 MB / 0.4987 GB, free: 28.84 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009627/0.3375, allocations: 0.5255 MB / 0.4992 GB, free: 28.49 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.382e-05/0.3376, allocations: 3.938 kB / 0.4992 GB, free: 28.49 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.069e-05/0.3376, allocations: 3.938 kB / 0.4992 GB, free: 28.48 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 9.579e-05/0.3377, allocations: 14.97 kB / 0.4992 GB, free: 28.47 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002734/0.338, allocations: 55.48 kB / 0.4993 GB, free: 28.44 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001286/0.3381, allocations: 88.97 kB / 0.4994 GB, free: 28.4 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.3382, allocations: 17.89 kB / 0.4994 GB, free: 28.39 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.3383, allocations: 42.03 kB / 0.4994 GB, free: 28.38 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.878e-05/0.3384, allocations: 47.72 kB / 0.4995 GB, free: 28.35 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.069e-05/0.3384, allocations: 9.688 kB / 0.4995 GB, free: 28.35 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.644e-05/0.3385, allocations: 9.531 kB / 0.4995 GB, free: 28.35 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.536e-05/0.3385, allocations: 14.48 kB / 0.4995 GB, free: 28.34 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.32e-05/0.3386, allocations: 29.03 kB / 0.4995 GB, free: 28.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001453/0.3387, allocations: 90.05 kB / 0.4996 GB, free: 28.29 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3387, allocations: 3.938 kB / 0.4996 GB, free: 28.28 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3387, allocations: 0 / 0.4996 GB, free: 28.28 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.3387, allocations: 4 kB / 0.4996 GB, free: 28.28 MB / 446.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.0006172/0.3393, allocations: 331.3 kB / 0.5 GB, free: 27.99 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.3394, allocations: 6.344 kB / 0.5 GB, free: 27.99 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.3395, allocations: 25.17 kB / 0.5 GB, free: 27.98 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001795/0.3397, allocations: 131.9 kB / 0.5001 GB, free: 27.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/0.3397, allocations: 11.12 kB / 0.5001 GB, free: 27.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.607e-05/0.3397, allocations: 7.438 kB / 0.5001 GB, free: 27.83 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002063/0.3399, allocations: 92.39 kB / 0.5002 GB, free: 27.78 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.3399, allocations: 0 / 0.5002 GB, free: 27.78 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.706e-05/0.34, allocations: 3.984 kB / 0.5002 GB, free: 27.78 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.34, allocations: 3.281 kB / 0.5002 GB, free: 27.78 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.3401, allocations: 51.7 kB / 0.5003 GB, free: 27.76 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004215/0.3405, allocations: 262.3 kB / 0.5005 GB, free: 27.53 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001929/0.3407, allocations: 91.81 kB / 0.5006 GB, free: 27.48 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.758e-05/0.3408, allocations: 43.11 kB / 0.5006 GB, free: 27.46 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.3408, allocations: 0 / 0.5006 GB, free: 27.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000165/0.341, allocations: 102.2 kB / 0.5007 GB, free: 27.39 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.372e-06/0.341, allocations: 3.438 kB / 0.5007 GB, free: 27.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004279/0.3414, allocations: 196.1 kB / 0.5009 GB, free: 27.31 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.3415, allocations: 58.66 kB / 0.501 GB, free: 27.24 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.902e-05/0.3415, allocations: 117.8 kB / 0.5011 GB, free: 27.14 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.3416, allocations: 36.95 kB / 0.5011 GB, free: 27.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.606e-05/0.3416, allocations: 95.16 kB / 0.5012 GB, free: 27 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.282e-05/0.3416, allocations: 37.27 kB / 0.5013 GB, free: 26.98 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.776e-05/0.3417, allocations: 38.16 kB / 0.5013 GB, free: 26.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.601e-05/0.3417, allocations: 325.2 kB / 0.5016 GB, free: 26.63 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.793e-05/0.3418, allocations: 35.8 kB / 0.5016 GB, free: 26.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001012/0.3419, allocations: 76.45 kB / 0.5017 GB, free: 26.57 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001817/0.3421, allocations: 119.9 kB / 0.5018 GB, free: 26.49 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3421, allocations: 0 / 0.5018 GB, free: 26.49 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002423/0.3423, allocations: 159.1 kB / 0.502 GB, free: 26.42 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.3424, allocations: 6.281 kB / 0.502 GB, free: 26.42 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.3424, allocations: 0 / 0.502 GB, free: 26.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.3424, allocations: 3.062 kB / 0.502 GB, free: 26.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.3425, allocations: 29.25 kB / 0.502 GB, free: 26.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.3425, allocations: 6.609 kB / 0.502 GB, free: 26.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.005e-05/0.3426, allocations: 11.64 kB / 0.502 GB, free: 26.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.3426, allocations: 8.906 kB / 0.502 GB, free: 26.39 MB / 446.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 7.718e-05/0.3427, allocations: 131 kB / 0.5022 GB, free: 26.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.689e-05/0.3427, allocations: 10.66 kB / 0.5022 GB, free: 26.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.129e-05/0.3427, allocations: 15.72 kB / 0.5022 GB, free: 26.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3427, allocations: 3.938 kB / 0.5022 GB, free: 26.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.3427, allocations: 0 / 0.5022 GB, free: 26.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3427, allocations: 11.12 kB / 0.5022 GB, free: 26.24 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004449/0.3432, allocations: 391.6 kB / 0.5026 GB, free: 25.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3432, allocations: 0 / 0.5026 GB, free: 25.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.075e-05/0.3432, allocations: 10.12 kB / 0.5026 GB, free: 25.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.3432, allocations: 0 / 0.5026 GB, free: 25.95 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.3432, allocations: 7.156 kB / 0.5026 GB, free: 25.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.3432, allocations: 4 kB / 0.5026 GB, free: 25.94 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.3432, allocations: 3.422 kB / 0.5026 GB, free: 25.94 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002784/0.3435, allocations: 260 kB / 0.5029 GB, free: 25.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.357e-05/0.3435, allocations: 15 kB / 0.5029 GB, free: 25.75 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.642e-05/0.3435, allocations: 10.69 kB / 0.5029 GB, free: 25.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.3437, allocations: 7.406 kB / 0.5029 GB, free: 25.75 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.066e-05/0.3437, allocations: 17.14 kB / 0.5029 GB, free: 25.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.3437, allocations: 3.281 kB / 0.5029 GB, free: 25.74 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.177e-05/0.3438, allocations: 92.19 kB / 0.503 GB, free: 25.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3438, allocations: 0 / 0.503 GB, free: 25.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002491/0.344, allocations: 22.94 kB / 0.503 GB, free: 25.66 MB / 446.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 8.3e-05/0.3441, allocations: 99.48 kB / 0.5031 GB, free: 25.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002553/0.3444, allocations: 104.5 kB / 0.5032 GB, free: 25.54 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3444, allocations: 0 / 0.5032 GB, free: 25.54 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.3445, allocations: 50.88 kB / 0.5033 GB, free: 25.53 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.3447, allocations: 17.56 kB / 0.5033 GB, free: 25.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003964/0.3451, allocations: 211.1 kB / 0.5035 GB, free: 25.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.633e-05/0.3452, allocations: 87.66 kB / 0.5036 GB, free: 25.28 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.984e-05/0.3452, allocations: 10.62 kB / 0.5036 GB, free: 25.28 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.636e-05/0.3453, allocations: 18.97 kB / 0.5036 GB, free: 25.27 MB / 446.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3453, allocations: 3.938 kB / 0.5036 GB, free: 25.26 MB / 446.1 MB Notification: Performance of Templates: time 0.003584/0.3488, allocations: 1.06 MB / 0.5046 GB, free: 25.11 MB / 446.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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/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: 4.973521388019435]