Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001714/0.001714, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 226.5 MB / 243.4 MB, free: 8.113 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007741/0.0007742, allocations: 92.28 kB / 295.5 MB, free: 6.918 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3244/0.3244, allocations: 44.82 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003122/0.0003123, allocations: 8 kB / 465.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2899, allocations: 62.96 MB / 0.5159 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001461/0.2914, allocations: 1.235 MB / 0.5171 GB, free: 36.25 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007214/0.2921, allocations: 0.4903 MB / 0.5176 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.68e-05/0.2922, allocations: 3.344 kB / 0.5176 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.152e-05/0.2922, allocations: 7.266 kB / 0.5176 GB, free: 35.9 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 9.107e-05/0.2923, allocations: 11.92 kB / 0.5176 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001923/0.2925, allocations: 38.02 kB / 0.5176 GB, free: 35.87 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 9.102e-05/0.2926, allocations: 78.28 kB / 0.5177 GB, free: 35.83 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.2927, allocations: 6.547 kB / 0.5177 GB, free: 35.83 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.2929, allocations: 45.31 kB / 0.5177 GB, free: 35.81 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.392e-05/0.293, allocations: 37.64 kB / 0.5178 GB, free: 35.79 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.603e-05/0.293, allocations: 3.125 kB / 0.5178 GB, free: 35.79 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.037e-05/0.293, allocations: 9.75 kB / 0.5178 GB, free: 35.79 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.059e-05/0.2931, allocations: 13.33 kB / 0.5178 GB, free: 35.79 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.069e-05/0.2931, allocations: 65.83 kB / 0.5179 GB, free: 35.73 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 8.965e-05/0.2932, allocations: 53.95 kB / 0.5179 GB, free: 35.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2932, allocations: 0 / 0.5179 GB, free: 35.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2932, allocations: 0 / 0.5179 GB, free: 35.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.2932, allocations: 0 / 0.5179 GB, free: 35.71 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.0005405/0.2938, allocations: 390.8 kB / 0.5183 GB, free: 35.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.2938, allocations: 8.438 kB / 0.5183 GB, free: 35.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/0.294, allocations: 23.03 kB / 0.5183 GB, free: 35.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.936e-05/0.2941, allocations: 170.6 kB / 0.5185 GB, free: 35.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.341e-05/0.2941, allocations: 6.938 kB / 0.5185 GB, free: 35.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.895e-05/0.2941, allocations: 6.062 kB / 0.5185 GB, free: 35.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001779/0.2943, allocations: 99.81 kB / 0.5186 GB, free: 35.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.2943, allocations: 0 / 0.5186 GB, free: 35.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.2944, allocations: 0 / 0.5186 GB, free: 35.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.2944, allocations: 2.969 kB / 0.5186 GB, free: 35.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001191/0.2945, allocations: 52.22 kB / 0.5186 GB, free: 35.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004636/0.295, allocations: 330.9 kB / 0.519 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000163/0.2951, allocations: 93.83 kB / 0.519 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.219e-05/0.2952, allocations: 47.98 kB / 0.5191 GB, free: 34.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.877e-05/0.2953, allocations: 10.86 kB / 0.5191 GB, free: 34.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001711/0.2955, allocations: 91.98 kB / 0.5192 GB, free: 34.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.2955, allocations: 0 / 0.5192 GB, free: 34.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003891/0.2959, allocations: 205.8 kB / 0.5194 GB, free: 34.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/0.2959, allocations: 57.67 kB / 0.5194 GB, free: 34.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.285e-05/0.296, allocations: 114.4 kB / 0.5195 GB, free: 34.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.296, allocations: 32.45 kB / 0.5196 GB, free: 34.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.795e-05/0.296, allocations: 94.95 kB / 0.5197 GB, free: 34.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.92e-05/0.2961, allocations: 36.2 kB / 0.5197 GB, free: 34.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.352e-06/0.2961, allocations: 0 / 0.5197 GB, free: 34.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.21e-05/0.2962, allocations: 325.5 kB / 0.52 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.459e-05/0.2962, allocations: 43.61 kB / 0.5201 GB, free: 33.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.909e-05/0.2963, allocations: 76.56 kB / 0.5201 GB, free: 33.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001605/0.2965, allocations: 125 kB / 0.5202 GB, free: 33.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.2965, allocations: 0 / 0.5202 GB, free: 33.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002222/0.2967, allocations: 171.2 kB / 0.5204 GB, free: 33.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.2968, allocations: 8.969 kB / 0.5204 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.2968, allocations: 0 / 0.5204 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.2968, allocations: 2.906 kB / 0.5204 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.2969, allocations: 20.55 kB / 0.5204 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.2969, allocations: 6.719 kB / 0.5204 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.616e-05/0.297, allocations: 13.38 kB / 0.5205 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.297, allocations: 6.891 kB / 0.5205 GB, free: 33.62 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 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.361e-05/0.2971, allocations: 133.2 kB / 0.5206 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.503e-05/0.2971, allocations: 7.188 kB / 0.5206 GB, free: 33.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.125e-05/0.2972, allocations: 14.67 kB / 0.5206 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.2972, allocations: 2.969 kB / 0.5206 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.2972, allocations: 3.938 kB / 0.5206 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2972, allocations: 0 / 0.5206 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004218/0.2976, allocations: 452 kB / 0.5211 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.2976, allocations: 0 / 0.5211 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.077e-05/0.2977, allocations: 13.78 kB / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2977, allocations: 0 / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.2977, allocations: 6.844 kB / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2977, allocations: 0 / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2977, allocations: 0 / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002596/0.298, allocations: 255.8 kB / 0.5213 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.746e-05/0.298, allocations: 87.92 kB / 0.5214 GB, free: 32.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.173e-05/0.2981, allocations: 2.812 kB / 0.5214 GB, free: 32.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.2982, allocations: 12.83 kB / 0.5214 GB, free: 32.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.711e-05/0.2982, allocations: 8.938 kB / 0.5214 GB, free: 32.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.2982, allocations: 6.344 kB / 0.5214 GB, free: 32.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.345e-05/0.2983, allocations: 95.17 kB / 0.5215 GB, free: 32.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2983, allocations: 4 kB / 0.5215 GB, free: 32.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002334/0.2985, allocations: 21.88 kB / 0.5215 GB, free: 32.73 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.833e-05/0.2986, allocations: 106.3 kB / 0.5216 GB, free: 32.63 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002263/0.2988, allocations: 107.8 kB / 0.5217 GB, free: 32.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2988, allocations: 0 / 0.5217 GB, free: 32.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001015/0.299, allocations: 60.12 kB / 0.5218 GB, free: 32.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.2992, allocations: 14.92 kB / 0.5218 GB, free: 32.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003905/0.2996, allocations: 249.5 kB / 0.5221 GB, free: 32.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001406/0.2998, allocations: 0.6973 MB / 0.5227 GB, free: 31.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.049e-05/0.2998, allocations: 14.41 kB / 0.5228 GB, free: 31.67 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2998, allocations: 0 / 0.5228 GB, free: 31.67 MB / 378.7 MB Notification: Performance of Templates: time 0.002354/0.3022, allocations: 1.199 MB / 0.5239 GB, free: 31.57 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches