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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001183/0.001183, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001008/0.001008, allocations: 101.4 kB / 296.7 MB, free: 6.477 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3462/0.3462, allocations: 44.84 MB / 392.7 MB, free: 34.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 67.88 kB / 465.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3244, allocations: 62.02 MB / 0.5151 GB, free: 37.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002167/0.3267, allocations: 1.601 MB / 0.5167 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006905/0.3274, allocations: 0.5252 MB / 0.5172 GB, free: 36.4 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.345e-05/0.3274, allocations: 0 / 0.5172 GB, free: 36.4 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 3.235e-05/0.3274, allocations: 0 / 0.5172 GB, free: 36.4 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.148e-05/0.3275, allocations: 17.97 kB / 0.5172 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001609/0.3277, allocations: 36.8 kB / 0.5173 GB, free: 36.36 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 8.212e-05/0.3278, allocations: 84.88 kB / 0.5174 GB, free: 36.32 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.118e-05/0.3279, allocations: 7.031 kB / 0.5174 GB, free: 36.32 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001345/0.328, allocations: 43.56 kB / 0.5174 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.684e-05/0.3281, allocations: 41.44 kB / 0.5174 GB, free: 36.29 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.685e-05/0.3281, allocations: 5.469 kB / 0.5175 GB, free: 36.29 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.173e-05/0.3282, allocations: 5.5 kB / 0.5175 GB, free: 36.29 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.187e-05/0.3282, allocations: 16.58 kB / 0.5175 GB, free: 36.28 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.738e-05/0.3282, allocations: 35.73 kB / 0.5175 GB, free: 36.25 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001058/0.3283, allocations: 81.58 kB / 0.5176 GB, free: 36.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3283, allocations: 0 / 0.5176 GB, free: 36.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.3284, allocations: 0 / 0.5176 GB, free: 36.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.467e-06/0.3284, allocations: 0 / 0.5176 GB, free: 36.22 MB / 378.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.0005128/0.3289, allocations: 402.4 kB / 0.518 GB, free: 35.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.3289, allocations: 8.844 kB / 0.518 GB, free: 35.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.329, allocations: 23.78 kB / 0.518 GB, free: 35.83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.551e-05/0.3291, allocations: 174.2 kB / 0.5182 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.3292, allocations: 6.125 kB / 0.5182 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.842e-05/0.3292, allocations: 14.16 kB / 0.5182 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001543/0.3293, allocations: 86.11 kB / 0.5183 GB, free: 35.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.3294, allocations: 0 / 0.5183 GB, free: 35.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.3294, allocations: 6.938 kB / 0.5183 GB, free: 35.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.3294, allocations: 0 / 0.5183 GB, free: 35.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001074/0.3295, allocations: 44.81 kB / 0.5183 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004194/0.3299, allocations: 327.8 kB / 0.5186 GB, free: 35.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000145/0.3301, allocations: 85.44 kB / 0.5187 GB, free: 35.21 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.427e-05/0.3302, allocations: 47.91 kB / 0.5188 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.3302, allocations: 6.828 kB / 0.5188 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001597/0.3304, allocations: 101.3 kB / 0.5189 GB, free: 35.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/0.3304, allocations: 0 / 0.5189 GB, free: 35.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.000336/0.3307, allocations: 195.5 kB / 0.519 GB, free: 35.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/0.3307, allocations: 53.88 kB / 0.5191 GB, free: 34.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.545e-05/0.3308, allocations: 117.2 kB / 0.5192 GB, free: 34.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.3308, allocations: 32.48 kB / 0.5192 GB, free: 34.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.719e-05/0.3309, allocations: 94.53 kB / 0.5193 GB, free: 34.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.848e-05/0.3309, allocations: 33.19 kB / 0.5194 GB, free: 34.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.286e-05/0.3309, allocations: 40.98 kB / 0.5194 GB, free: 34.67 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.267e-05/0.331, allocations: 325 kB / 0.5197 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.915e-05/0.3311, allocations: 30.75 kB / 0.5197 GB, free: 34.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.094e-05/0.3311, allocations: 81.41 kB / 0.5198 GB, free: 34.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001458/0.3313, allocations: 123.8 kB / 0.5199 GB, free: 34.19 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3313, allocations: 0 / 0.5199 GB, free: 34.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000206/0.3315, allocations: 162.5 kB / 0.5201 GB, free: 34.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.3315, allocations: 5.812 kB / 0.5201 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.3316, allocations: 2.875 kB / 0.5201 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.3316, allocations: 2.938 kB / 0.5201 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.397e-05/0.3317, allocations: 25.22 kB / 0.5201 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.3317, allocations: 2.844 kB / 0.5201 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.3e-05/0.3317, allocations: 10.88 kB / 0.5201 GB, free: 34.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.3318, allocations: 5.875 kB / 0.5201 GB, free: 34.1 MB / 378.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.695e-05/0.3318, allocations: 139.9 kB / 0.5203 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.617e-05/0.3318, allocations: 9.531 kB / 0.5203 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.476e-05/0.3319, allocations: 12.5 kB / 0.5203 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.3319, allocations: 9.875 kB / 0.5203 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3319, allocations: 0 / 0.5203 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.247e-06/0.3319, allocations: 0 / 0.5203 GB, free: 33.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003719/0.3323, allocations: 448.1 kB / 0.5207 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3323, allocations: 3.938 kB / 0.5207 GB, free: 33.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.678e-05/0.3323, allocations: 13.34 kB / 0.5208 GB, free: 33.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.3324, allocations: 0 / 0.5208 GB, free: 33.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.3324, allocations: 2.906 kB / 0.5208 GB, free: 33.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3324, allocations: 0 / 0.5208 GB, free: 33.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3324, allocations: 384 / 0.5208 GB, free: 33.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004106/0.3328, allocations: 0.8499 MB / 0.5216 GB, free: 32.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.953e-05/0.3328, allocations: 83.73 kB / 0.5217 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.3328, allocations: 6.906 kB / 0.5217 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.66e-05/0.3329, allocations: 10.95 kB / 0.5217 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.684e-05/0.333, allocations: 7.344 kB / 0.5217 GB, free: 32.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.564e-05/0.333, allocations: 7.875 kB / 0.5217 GB, free: 32.69 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.836e-05/0.333, allocations: 91.22 kB / 0.5218 GB, free: 32.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3331, allocations: 0 / 0.5218 GB, free: 32.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003217/0.3334, allocations: 34.19 kB / 0.5218 GB, free: 32.6 MB / 378.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 7.315e-05/0.3335, allocations: 100.4 kB / 0.5219 GB, free: 32.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001948/0.3337, allocations: 103.8 kB / 0.522 GB, free: 32.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3337, allocations: 0 / 0.522 GB, free: 32.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.813e-05/0.3338, allocations: 51.02 kB / 0.5221 GB, free: 32.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.334, allocations: 13.69 kB / 0.5221 GB, free: 32.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003921/0.3344, allocations: 370.1 kB / 0.5224 GB, free: 32.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001095/0.3345, allocations: 0.6997 MB / 0.5231 GB, free: 31.45 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.826e-05/0.3346, allocations: 9.422 kB / 0.5231 GB, free: 31.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.01e-05/0.3346, allocations: 16.52 kB / 0.5231 GB, free: 31.45 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3346, allocations: 0 / 0.5231 GB, free: 31.45 MB / 378.7 MB Notification: Performance of Templates: time 0.00255/0.3372, allocations: 0.9581 MB / 0.5241 GB, free: 31.35 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile (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 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches