Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001112/0.001112, allocations: 80.2 kB / 20.65 MB, free: 3.84 MB / 18.57 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.001305/0.001305, allocations: 173 kB / 24.05 MB, free: 456 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.007/1.007, allocations: 158.6 MB / 185.9 MB, free: 2.809 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1728/0.1728, allocations: 32.38 MB / 270.7 MB, free: 14.53 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.424e-06/2.424e-06, allocations: 0 / 348.1 MB, free: 9.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.985e-05/3.227e-05, allocations: 2.312 kB / 348.1 MB, free: 9.191 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002341/0.002373, allocations: 1.556 MB / 349.7 MB, free: 7.633 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000788/0.003161, allocations: 0.5191 MB / 350.2 MB, free: 7.105 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.268e-05/0.003214, allocations: 0 / 350.2 MB, free: 7.105 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.983e-05/0.003244, allocations: 3.938 kB / 350.2 MB, free: 7.102 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001037/0.003347, allocations: 19.78 kB / 350.2 MB, free: 7.082 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001978/0.003545, allocations: 39.83 kB / 350.2 MB, free: 7.043 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.331e-05/0.003628, allocations: 91.69 kB / 350.3 MB, free: 6.953 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.003731, allocations: 8 kB / 350.3 MB, free: 6.945 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.003857, allocations: 63.81 kB / 350.4 MB, free: 6.883 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.318e-05/0.00392, allocations: 23.91 kB / 350.4 MB, free: 6.859 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.086e-05/0.003941, allocations: 8 kB / 350.4 MB, free: 6.852 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.215e-05/0.003953, allocations: 8 kB / 350.4 MB, free: 6.844 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.985e-05/0.003983, allocations: 23.91 kB / 350.5 MB, free: 6.82 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.507e-05/0.004018, allocations: 23.97 kB / 350.5 MB, free: 6.797 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001078/0.004126, allocations: 55.8 kB / 350.5 MB, free: 6.742 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.504e-06/0.004128, allocations: 0 / 350.5 MB, free: 6.742 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.004129, allocations: 0 / 350.5 MB, free: 6.742 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.004132, allocations: 0 / 350.5 MB, free: 6.742 MB / 282.7 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.0004197/0.004552, allocations: 432.3 kB / 351 MB, free: 6.285 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.004592, allocations: 15.97 kB / 351 MB, free: 6.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.039e-05/0.004632, allocations: 16.89 kB / 351 MB, free: 6.254 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.64e-05/0.004708, allocations: 120.5 kB / 351.1 MB, free: 6.109 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.004725, allocations: 8.312 kB / 351.1 MB, free: 6.102 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.19e-05/0.004737, allocations: 8.375 kB / 351.1 MB, free: 6.094 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.004846, allocations: 82.66 kB / 351.2 MB, free: 6.008 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.004854, allocations: 4.188 kB / 351.2 MB, free: 6.004 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-06/0.004863, allocations: 384 / 351.2 MB, free: 6.004 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.00487, allocations: 7.938 kB / 351.2 MB, free: 5.996 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.734e-05/0.004897, allocations: 19.92 kB / 351.2 MB, free: 5.977 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002849/0.005182, allocations: 284.3 kB / 351.5 MB, free: 5.672 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.124e-05/0.005273, allocations: 67.02 kB / 351.6 MB, free: 5.594 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.371e-05/0.005297, allocations: 19.67 kB / 351.6 MB, free: 5.57 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.079e-05/0.005318, allocations: 4 kB / 351.6 MB, free: 5.566 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.894e-05/0.005396, allocations: 92.89 kB / 351.7 MB, free: 5.461 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.403e-06/0.005398, allocations: 0 / 351.7 MB, free: 5.461 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001926/0.00559, allocations: 137.6 kB / 351.8 MB, free: 5.32 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.499e-05/0.005615, allocations: 63.33 kB / 351.9 MB, free: 5.246 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.224e-05/0.005668, allocations: 177.8 kB / 352.1 MB, free: 5.055 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.999e-06/0.005678, allocations: 29.7 kB / 352.1 MB, free: 5.02 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.216e-05/0.00571, allocations: 139.1 kB / 352.2 MB, free: 4.879 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.729e-05/0.005737, allocations: 35.72 kB / 352.3 MB, free: 4.844 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.519e-05/0.005772, allocations: 43.34 kB / 352.3 MB, free: 4.793 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.639e-05/0.005819, allocations: 0.4923 MB / 352.8 MB, free: 4.289 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.789e-05/0.005837, allocations: 15.98 kB / 352.8 MB, free: 4.273 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.784e-05/0.005874, allocations: 82.03 kB / 352.9 MB, free: 4.168 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.551e-05/0.00594, allocations: 106.2 kB / 353 MB, free: 4.039 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.005942, allocations: 0 / 353 MB, free: 4.039 MB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001065/0.006049, allocations: 125.4 kB / 353.1 MB, free: 3.91 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.006061, allocations: 16.14 kB / 353.1 MB, free: 3.895 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.006066, allocations: 0 / 353.1 MB, free: 3.895 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.006077, allocations: 4 kB / 353.1 MB, free: 3.891 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.416e-05/0.006152, allocations: 24 kB / 353.2 MB, free: 3.867 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.006157, allocations: 3.984 kB / 353.2 MB, free: 3.863 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.795e-05/0.006185, allocations: 7.938 kB / 353.2 MB, free: 3.855 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.006195, allocations: 11.94 kB / 353.2 MB, free: 3.844 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,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) * 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 6.066e-05/0.006256, allocations: 170.5 kB / 353.4 MB, free: 3.664 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.279e-05/0.006269, allocations: 11.95 kB / 353.4 MB, free: 3.652 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.906e-05/0.006298, allocations: 16.42 kB / 353.4 MB, free: 3.641 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.0063, allocations: 8 kB / 353.4 MB, free: 3.633 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.006302, allocations: 0 / 353.4 MB, free: 3.633 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.006306, allocations: 0 / 353.4 MB, free: 3.633 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002328/0.006539, allocations: 389.8 kB / 353.8 MB, free: 3.219 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.00654, allocations: 0 / 353.8 MB, free: 3.219 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.418e-05/0.006564, allocations: 7.984 kB / 353.8 MB, free: 3.211 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.006566, allocations: 4 kB / 353.8 MB, free: 3.207 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.198e-06/0.006575, allocations: 4 kB / 353.8 MB, free: 3.203 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.006576, allocations: 0 / 353.8 MB, free: 3.203 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.006577, allocations: 0 / 353.8 MB, free: 3.203 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001311/0.006708, allocations: 286.7 kB / 354.1 MB, free: 2.906 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.226e-05/0.006721, allocations: 23.88 kB / 354.1 MB, free: 2.883 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.006736, allocations: 0 / 354.1 MB, free: 2.883 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.598e-05/0.006782, allocations: 4 kB / 354.1 MB, free: 2.879 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.273e-05/0.006815, allocations: 15.97 kB / 354.1 MB, free: 2.863 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.006829, allocations: 4 kB / 354.1 MB, free: 2.859 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.183e-05/0.006851, allocations: 131.2 kB / 354.2 MB, free: 2.73 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006851, allocations: 0 / 354.2 MB, free: 2.73 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00015/0.007001, allocations: 20 kB / 354.3 MB, free: 2.711 MB / 282.7 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.596e-05/0.007087, allocations: 107.8 kB / 354.4 MB, free: 2.594 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.952e-05/0.007186, allocations: 75.94 kB / 354.4 MB, free: 2.516 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.007188, allocations: 0 / 354.4 MB, free: 2.516 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.948e-05/0.007227, allocations: 39.61 kB / 354.5 MB, free: 2.473 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001888/0.007416, allocations: 16.3 kB / 354.5 MB, free: 2.457 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004371/0.007853, allocations: 213.6 kB / 354.7 MB, free: 2.219 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.275e-05/0.007886, allocations: 63.34 kB / 354.8 MB, free: 2.137 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.732e-05/0.007923, allocations: 9.297 kB / 354.8 MB, free: 2.129 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.55e-05/0.007989, allocations: 86.19 kB / 354.9 MB, free: 2.043 MB / 282.7 MB Notification: Performance of SimCode: time 1.302e-06/0.00799, allocations: 0 / 354.9 MB, free: 2.043 MB / 282.7 MB Notification: Performance of Templates: time 0.002669/0.01066, allocations: 1.122 MB / 356 MB, free: 0.9453 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1492069037631154]