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.0009608/0.0009609, allocations: 198.3 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.22/1.22, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007604/0.0007604, allocations: 101.2 kB / 295.1 MB, free: 10.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.184/0.184, allocations: 44.84 MB / 392 MB, free: 9.316 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002311/0.0002311, allocations: 8 kB / 464.7 MB, free: 49.76 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0853/0.08554, allocations: 62.95 MB / 0.5153 GB, free: 2.766 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001403/0.08698, allocations: 1.234 MB / 0.5165 GB, free: 1.512 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007019/0.08769, allocations: 0.4914 MB / 0.517 GB, free: 1.016 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.782e-05/0.08774, allocations: 3.938 kB / 0.517 GB, free: 1.012 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.409e-05/0.08776, allocations: 3.938 kB / 0.517 GB, free: 1.008 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.431e-05/0.08784, allocations: 11.88 kB / 0.517 GB, free: 0.9961 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001728/0.08802, allocations: 31.95 kB / 0.517 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 9.213e-05/0.08812, allocations: 83.7 kB / 0.5171 GB, free: 0.8828 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.828e-05/0.08821, allocations: 8 kB / 0.5171 GB, free: 0.875 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001233/0.08834, allocations: 39.89 kB / 0.5172 GB, free: 0.8359 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.802e-05/0.08843, allocations: 35.84 kB / 0.5172 GB, free: 0.8008 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.393e-05/0.08847, allocations: 3.984 kB / 0.5172 GB, free: 0.7969 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.882e-05/0.08851, allocations: 8 kB / 0.5172 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.922e-05/0.08854, allocations: 15.92 kB / 0.5172 GB, free: 0.7734 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.614e-05/0.08858, allocations: 41.62 kB / 0.5173 GB, free: 0.7266 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 9.066e-05/0.08867, allocations: 55.89 kB / 0.5173 GB, free: 0.6719 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.08869, allocations: 4 kB / 0.5173 GB, free: 0.668 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.08869, allocations: 0 / 0.5173 GB, free: 0.668 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.0887, allocations: 3.938 kB / 0.5173 GB, free: 0.6641 MB / 346.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.0005457/0.08926, allocations: 387.3 kB / 0.5177 GB, free: 244 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.058e-05/0.08929, allocations: 16.03 kB / 0.5177 GB, free: 228 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.08943, allocations: 19.89 kB / 0.5177 GB, free: 208 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1672/0.2566, allocations: 171.9 kB / 0.5179 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.817e-05/0.2567, allocations: 2.156 kB / 0.5179 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.86e-05/0.2567, allocations: 10.55 kB / 0.5179 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.2569, allocations: 85.5 kB / 0.518 GB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.257, allocations: 0.5938 kB / 0.518 GB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.495e-05/0.257, allocations: 6.266 kB / 0.518 GB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.257, allocations: 1.938 kB / 0.518 GB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001388/0.2571, allocations: 49.48 kB / 0.5181 GB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004923/0.2576, allocations: 327.5 kB / 0.5184 GB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/0.2578, allocations: 90.33 kB / 0.5185 GB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.264e-05/0.2579, allocations: 49.66 kB / 0.5185 GB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.258, allocations: 4.641 kB / 0.5185 GB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001936/0.2582, allocations: 96.84 kB / 0.5186 GB, free: 11.39 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.794e-06/0.2582, allocations: 0 / 0.5186 GB, free: 11.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004142/0.2586, allocations: 199 kB / 0.5188 GB, free: 11.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.262e-05/0.2586, allocations: 57.44 kB / 0.5188 GB, free: 11.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.706e-05/0.2587, allocations: 120.4 kB / 0.519 GB, free: 11.2 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.2587, allocations: 32.48 kB / 0.519 GB, free: 11.16 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.052e-05/0.2588, allocations: 91.2 kB / 0.5191 GB, free: 11.08 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.468e-05/0.2588, allocations: 39.36 kB / 0.5191 GB, free: 11.06 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.475e-06/0.2588, allocations: 6.812 kB / 0.5191 GB, free: 11.06 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.272e-05/0.2589, allocations: 325 kB / 0.5194 GB, free: 10.75 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.742e-05/0.259, allocations: 36.25 kB / 0.5195 GB, free: 10.75 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.832e-05/0.2591, allocations: 86.28 kB / 0.5195 GB, free: 10.7 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.278e-05/0.2592, allocations: 50.09 kB / 0.5196 GB, free: 10.69 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2592, allocations: 0.9688 kB / 0.5196 GB, free: 10.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002568/0.2594, allocations: 160.3 kB / 0.5197 GB, free: 10.65 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.2595, allocations: 6.359 kB / 0.5198 GB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.2595, allocations: 1.844 kB / 0.5198 GB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.2595, allocations: 2.875 kB / 0.5198 GB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.2596, allocations: 27.55 kB / 0.5198 GB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.2596, allocations: 5.969 kB / 0.5198 GB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.923e-05/0.2597, allocations: 8.797 kB / 0.5198 GB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/0.2597, allocations: 9.062 kB / 0.5198 GB, free: 10.64 MB / 346.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 7.452e-05/0.2598, allocations: 129.7 kB / 0.5199 GB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.643e-05/0.2598, allocations: 13.69 kB / 0.5199 GB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.062e-05/0.2598, allocations: 14.06 kB / 0.52 GB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.2598, allocations: 2.312 kB / 0.52 GB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.2599, allocations: 4.75 kB / 0.52 GB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2599, allocations: 1.453 kB / 0.52 GB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004454/0.2603, allocations: 444.6 kB / 0.5204 GB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2603, allocations: 0 / 0.5204 GB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.036e-05/0.2604, allocations: 13.42 kB / 0.5204 GB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.2604, allocations: 0.6875 kB / 0.5204 GB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.2604, allocations: 8.672 kB / 0.5204 GB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.2604, allocations: 1.156 kB / 0.5204 GB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2604, allocations: 0 / 0.5204 GB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002807/0.2607, allocations: 254.7 kB / 0.5207 GB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.197e-05/0.2608, allocations: 84.58 kB / 0.5207 GB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.15e-05/0.2608, allocations: 3.031 kB / 0.5207 GB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.2609, allocations: 16.59 kB / 0.5208 GB, free: 9.957 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.495e-05/0.2609, allocations: 16.11 kB / 0.5208 GB, free: 9.953 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.261, allocations: 9.594 kB / 0.5208 GB, free: 9.953 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.331e-05/0.261, allocations: 94.12 kB / 0.5209 GB, free: 9.875 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.261, allocations: 0.75 kB / 0.5209 GB, free: 9.875 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002227/0.2612, allocations: 26.75 kB / 0.5209 GB, free: 9.871 MB / 346.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 7.951e-05/0.2613, allocations: 97.48 kB / 0.521 GB, free: 9.785 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002309/0.2616, allocations: 108 kB / 0.5211 GB, free: 9.777 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.2616, allocations: 0 / 0.5211 GB, free: 9.777 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.2617, allocations: 56.08 kB / 0.5211 GB, free: 9.773 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002319/0.2619, allocations: 16.69 kB / 0.5212 GB, free: 9.77 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003494/0.2623, allocations: 263.7 kB / 0.5214 GB, free: 9.566 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001012/0.2624, allocations: 0.6926 MB / 0.5221 GB, free: 8.871 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.42e-05/0.2624, allocations: 15.34 kB / 0.5221 GB, free: 8.863 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2624, allocations: 0 / 0.5221 GB, free: 8.863 MB / 346.7 MB Notification: Performance of Templates: time 0.002327/0.2648, allocations: 1.198 MB / 0.5233 GB, free: 8.773 MB / 346.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