Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.009498/0.009498, allocations: 103.2 kB / 21.97 MB, free: 5.211 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.002201/0.002201, allocations: 224.6 kB / 25.3 MB, free: 3.211 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.437/1.437, allocations: 230.5 MB / 258.9 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2219/0.2219, allocations: 46.94 MB / 362.3 MB, free: 4.211 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-beta.om/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_4.1.0-beta.om_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-beta.om_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002333/0.002333, allocations: 83.86 kB / 0.4982 GB, free: 7.297 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3255, allocations: 66.08 MB / 0.5627 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002864/0.3283, allocations: 1.565 MB / 0.5643 GB, free: 2.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.3293, allocations: 0.561 MB / 0.5648 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.72e-05/0.3294, allocations: 4 kB / 0.5648 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.474e-05/0.3294, allocations: 7.875 kB / 0.5648 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.488e-05/0.3295, allocations: 15.8 kB / 0.5648 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002479/0.3298, allocations: 55.88 kB / 0.5649 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001554/0.3299, allocations: 91.69 kB / 0.565 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.179e-05/0.33, allocations: 8 kB / 0.565 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001695/0.3302, allocations: 47.84 kB / 0.565 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001153/0.3303, allocations: 43.83 kB / 0.5651 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.016e-05/0.3303, allocations: 12 kB / 0.5651 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.681e-05/0.3304, allocations: 11.98 kB / 0.5651 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.833e-05/0.3304, allocations: 19.92 kB / 0.5651 GB, free: 1.801 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.201e-05/0.3304, allocations: 39.78 kB / 0.5651 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001683/0.3306, allocations: 90.03 kB / 0.5652 GB, free: 1.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3306, allocations: 0 / 0.5652 GB, free: 1.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3306, allocations: 0 / 0.5652 GB, free: 1.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.3306, allocations: 0 / 0.5652 GB, free: 1.68 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.000659/0.3313, allocations: 330 kB / 0.5655 GB, free: 1.328 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.3313, allocations: 15.97 kB / 0.5656 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001388/0.3315, allocations: 16.88 kB / 0.5656 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.3317, allocations: 130.4 kB / 0.5657 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.3317, allocations: 4.375 kB / 0.5657 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.681e-05/0.3317, allocations: 12.36 kB / 0.5657 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002169/0.3319, allocations: 93.89 kB / 0.5658 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.332, allocations: 4 kB / 0.5658 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.332, allocations: 0 / 0.5658 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.332, allocations: 4 kB / 0.5658 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001382/0.3321, allocations: 47.97 kB / 0.5659 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005338/0.3326, allocations: 303.7 kB / 0.5661 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002741/0.3329, allocations: 94.47 kB / 0.5662 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.3331, allocations: 32.84 kB / 0.5663 GB, free: 0.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.3331, allocations: 4 kB / 0.5663 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002084/0.3333, allocations: 103.3 kB / 0.5664 GB, free: 392 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.3333, allocations: 0 / 0.5664 GB, free: 392 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004754/0.3338, allocations: 197.7 kB / 0.5666 GB, free: 188 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.3338, allocations: 63.34 kB / 0.5666 GB, free: 112 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.3339, allocations: 117.8 kB / 0.5667 GB, free: 15.98 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.334, allocations: 33.7 kB / 0.5668 GB, free: 15.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.197e-05/0.334, allocations: 88.38 kB / 0.5668 GB, free: 15.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.265e-05/0.3341, allocations: 43.72 kB / 0.5669 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.696e-05/0.3341, allocations: 37.92 kB / 0.5669 GB, free: 15.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.3343, allocations: 326.8 kB / 0.5672 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.3344, allocations: 39.92 kB / 0.5673 GB, free: 15.4 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.3346, allocations: 77.28 kB / 0.5673 GB, free: 15.31 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000238/0.3349, allocations: 119.7 kB / 0.5675 GB, free: 15.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.3349, allocations: 7.938 kB / 0.5675 GB, free: 15.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002977/0.3352, allocations: 157.5 kB / 0.5676 GB, free: 15.01 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.3352, allocations: 8 kB / 0.5676 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3352, allocations: 0 / 0.5676 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.3352, allocations: 0 / 0.5676 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.3353, allocations: 32.05 kB / 0.5677 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.699e-06/0.3353, allocations: 7.938 kB / 0.5677 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.074e-05/0.3354, allocations: 7.953 kB / 0.5677 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.3354, allocations: 8 kB / 0.5677 GB, free: 14.95 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.0001175/0.3355, allocations: 131.8 kB / 0.5678 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.25e-05/0.3355, allocations: 11.95 kB / 0.5678 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.254e-05/0.3356, allocations: 8.438 kB / 0.5678 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.3356, allocations: 0 / 0.5678 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.3356, allocations: 11.94 kB / 0.5678 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.3356, allocations: 0 / 0.5678 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006025/0.3362, allocations: 425.4 kB / 0.5682 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3362, allocations: 0 / 0.5682 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.634e-05/0.3362, allocations: 11.94 kB / 0.5683 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.3363, allocations: 3.938 kB / 0.5683 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.3363, allocations: 7.984 kB / 0.5683 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.3363, allocations: 4 kB / 0.5683 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3363, allocations: 0 / 0.5683 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003585/0.3366, allocations: 255.5 kB / 0.5685 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.475e-05/0.3366, allocations: 7.891 kB / 0.5685 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.776e-05/0.3367, allocations: 11.98 kB / 0.5685 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.3368, allocations: 7.984 kB / 0.5685 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.279e-05/0.3368, allocations: 7.984 kB / 0.5685 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-05/0.3368, allocations: 4 kB / 0.5686 GB, free: 13.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.939e-05/0.3369, allocations: 103.2 kB / 0.5687 GB, free: 13.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3369, allocations: 0 / 0.5687 GB, free: 13.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000246/0.3372, allocations: 24 kB / 0.5687 GB, free: 13.85 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.0001111/0.3373, allocations: 103.1 kB / 0.5688 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003311/0.3376, allocations: 107.1 kB / 0.5689 GB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.3376, allocations: 0 / 0.5689 GB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.3377, allocations: 48.17 kB / 0.5689 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002748/0.338, allocations: 18.17 kB / 0.5689 GB, free: 13.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005078/0.3385, allocations: 242.1 kB / 0.5692 GB, free: 13.31 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003398/0.3389, allocations: 0.6924 MB / 0.5698 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.263e-05/0.3389, allocations: 19.38 kB / 0.5699 GB, free: 12.57 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3389, allocations: 0 / 0.5699 GB, free: 12.57 MB / 414.1 MB Notification: Performance of Templates: time 0.003159/0.3421, allocations: 1.277 MB / 0.5711 GB, free: 11.29 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_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-beta.om_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: 7.192738814977929]