Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.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.001741/0.001741, allocations: 78.09 kB / 21.25 MB, free: 0.5352 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.001893/0.001893, allocations: 158.8 kB / 24.5 MB, free: 3.711 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.62/1.62, allocations: 177.1 MB / 204.7 MB, free: 8.98 MB / 190.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.2187/0.2187, allocations: 34.26 MB / 295.4 MB, free: 14.49 MB / 286.1 MB " [Timeout remaining time 179] 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: 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_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002802/0.002802, allocations: 79.88 kB / 443.1 MB, free: 6.512 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3548, allocations: 66.05 MB / 0.4973 GB, free: 29.79 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002873/0.3577, allocations: 1.544 MB / 0.4988 GB, free: 28.73 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.3587, allocations: 0.5262 MB / 0.4993 GB, free: 28.38 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.1e-05/0.3588, allocations: 0 / 0.4993 GB, free: 28.38 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 3.755e-05/0.3588, allocations: 7.875 kB / 0.4993 GB, free: 28.38 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 9.756e-05/0.3589, allocations: 11.19 kB / 0.4993 GB, free: 28.37 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002708/0.3592, allocations: 51.23 kB / 0.4993 GB, free: 28.34 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001532/0.3593, allocations: 93.2 kB / 0.4994 GB, free: 28.29 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.3595, allocations: 14.05 kB / 0.4994 GB, free: 28.29 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001594/0.3596, allocations: 45.22 kB / 0.4995 GB, free: 28.27 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.972e-05/0.3597, allocations: 42.77 kB / 0.4995 GB, free: 28.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.189e-05/0.3597, allocations: 6.188 kB / 0.4995 GB, free: 28.25 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.599e-05/0.3598, allocations: 9.469 kB / 0.4995 GB, free: 28.25 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.677e-05/0.3598, allocations: 22.7 kB / 0.4996 GB, free: 28.23 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.848e-05/0.3599, allocations: 36.86 kB / 0.4996 GB, free: 28.21 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001512/0.36, allocations: 81.64 kB / 0.4997 GB, free: 28.18 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.36, allocations: 0 / 0.4997 GB, free: 28.18 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.36, allocations: 3.938 kB / 0.4997 GB, free: 28.18 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.36, allocations: 0 / 0.4997 GB, free: 28.18 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.0006046/0.3606, allocations: 333.3 kB / 0.5 GB, free: 27.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.3607, allocations: 9.344 kB / 0.5 GB, free: 27.88 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/0.3608, allocations: 21.17 kB / 0.5 GB, free: 27.88 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001997/0.361, allocations: 127.9 kB / 0.5002 GB, free: 27.74 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.361, allocations: 7.688 kB / 0.5002 GB, free: 27.74 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.827e-05/0.361, allocations: 10.23 kB / 0.5002 GB, free: 27.74 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001964/0.3612, allocations: 92.16 kB / 0.5003 GB, free: 27.68 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.3612, allocations: 7.984 kB / 0.5003 GB, free: 27.68 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.3613, allocations: 7.562 kB / 0.5003 GB, free: 27.67 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3613, allocations: 3.188 kB / 0.5003 GB, free: 27.67 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001471/0.3614, allocations: 43.84 kB / 0.5003 GB, free: 27.66 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004276/0.3618, allocations: 264.2 kB / 0.5006 GB, free: 27.43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.362, allocations: 90.78 kB / 0.5007 GB, free: 27.38 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.091e-05/0.3621, allocations: 36.28 kB / 0.5007 GB, free: 27.36 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.936e-05/0.3622, allocations: 10.55 kB / 0.5007 GB, free: 27.36 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001792/0.3623, allocations: 100.3 kB / 0.5008 GB, free: 27.29 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.312e-06/0.3623, allocations: 0 / 0.5008 GB, free: 27.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=14): time 0.000441/0.3628, allocations: 198.1 kB / 0.501 GB, free: 27.21 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.3628, allocations: 58.78 kB / 0.501 GB, free: 27.14 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.629e-05/0.3629, allocations: 121.3 kB / 0.5012 GB, free: 27.04 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.3629, allocations: 36.83 kB / 0.5012 GB, free: 27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.481e-05/0.3629, allocations: 95.75 kB / 0.5013 GB, free: 26.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.494e-05/0.363, allocations: 41.77 kB / 0.5013 GB, free: 26.87 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.057e-05/0.363, allocations: 38.16 kB / 0.5014 GB, free: 26.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.578e-05/0.3631, allocations: 325.3 kB / 0.5017 GB, free: 26.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.989e-05/0.3632, allocations: 38.28 kB / 0.5017 GB, free: 26.51 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.3633, allocations: 73 kB / 0.5018 GB, free: 26.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001839/0.3635, allocations: 121.5 kB / 0.5019 GB, free: 26.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3635, allocations: 3.125 kB / 0.5019 GB, free: 26.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002476/0.3637, allocations: 155.9 kB / 0.502 GB, free: 26.31 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.3637, allocations: 6.281 kB / 0.5021 GB, free: 26.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3637, allocations: 0 / 0.5021 GB, free: 26.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.3638, allocations: 3.344 kB / 0.5021 GB, free: 26.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.3639, allocations: 23.22 kB / 0.5021 GB, free: 26.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.3639, allocations: 3.156 kB / 0.5021 GB, free: 26.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.425e-05/0.364, allocations: 26.64 kB / 0.5021 GB, free: 26.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.364, allocations: 6.25 kB / 0.5021 GB, free: 26.29 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 8.527e-05/0.3641, allocations: 126.2 kB / 0.5022 GB, free: 26.16 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.729e-05/0.3641, allocations: 10.42 kB / 0.5022 GB, free: 26.15 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.334e-05/0.3641, allocations: 12 kB / 0.5023 GB, free: 26.14 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3641, allocations: 3.156 kB / 0.5023 GB, free: 26.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.3641, allocations: 0 / 0.5023 GB, free: 26.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.3641, allocations: 7.875 kB / 0.5023 GB, free: 26.13 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004559/0.3646, allocations: 391.7 kB / 0.5026 GB, free: 25.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3646, allocations: 4 kB / 0.5026 GB, free: 25.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.416e-05/0.3646, allocations: 13.33 kB / 0.5027 GB, free: 25.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.3646, allocations: 0 / 0.5027 GB, free: 25.84 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.3646, allocations: 7.062 kB / 0.5027 GB, free: 25.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3647, allocations: 0 / 0.5027 GB, free: 25.83 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3647, allocations: 0 / 0.5027 GB, free: 25.83 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000314/0.365, allocations: 265.3 kB / 0.5029 GB, free: 25.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.74e-05/0.365, allocations: 10.45 kB / 0.5029 GB, free: 25.65 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.405e-05/0.365, allocations: 11.16 kB / 0.5029 GB, free: 25.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001525/0.3652, allocations: 14.58 kB / 0.5029 GB, free: 25.64 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.485e-05/0.3652, allocations: 6.75 kB / 0.503 GB, free: 25.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.3652, allocations: 13.78 kB / 0.503 GB, free: 25.63 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.503e-05/0.3653, allocations: 93.38 kB / 0.5031 GB, free: 25.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3653, allocations: 0 / 0.5031 GB, free: 25.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002515/0.3655, allocations: 23.38 kB / 0.5031 GB, free: 25.55 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 7.944e-05/0.3656, allocations: 100 kB / 0.5032 GB, free: 25.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002647/0.3659, allocations: 108.4 kB / 0.5033 GB, free: 25.42 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3659, allocations: 3.188 kB / 0.5033 GB, free: 25.42 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001078/0.366, allocations: 46.06 kB / 0.5033 GB, free: 25.41 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002855/0.3663, allocations: 13.05 kB / 0.5033 GB, free: 25.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004448/0.3667, allocations: 214.5 kB / 0.5035 GB, free: 25.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.317e-05/0.3668, allocations: 78.55 kB / 0.5036 GB, free: 25.17 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.137e-05/0.3668, allocations: 14.08 kB / 0.5036 GB, free: 25.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.02e-05/0.3669, allocations: 14.38 kB / 0.5036 GB, free: 25.16 MB / 446.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3669, allocations: 2.688 kB / 0.5036 GB, free: 25.16 MB / 446.1 MB Notification: Performance of Templates: time 0.003855/0.3707, allocations: 1.061 MB / 0.5047 GB, free: 25 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.195784570998512]