Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Continuous_InitialState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState") translateModel(ModelicaTest.Blocks.Continuous_InitialState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00135/0.00135, allocations: 175.9 kB / 16.72 MB, free: 4.949 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.225/1.225, allocations: 205.4 MB / 222.9 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006465/0.0006465, allocations: 101 kB / 271.2 MB, free: 8.227 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2816/0.2816, allocations: 43.57 MB / 363.1 MB, free: 52.24 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003419/0.0003419, allocations: 16 kB / 432 MB, free: 5.82 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08797/0.08833, allocations: 58.84 MB / 490.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialState): time 0.002987/0.09135, allocations: 2.863 MB / 493.7 MB, free: 8.012 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002314/0.09369, allocations: 1.509 MB / 495.2 MB, free: 6.496 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002641/0.09397, allocations: 23.88 kB / 495.2 MB, free: 6.473 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003861/0.09436, allocations: 107.2 kB / 495.3 MB, free: 6.367 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003802/0.09476, allocations: 159 kB / 495.5 MB, free: 6.211 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009351/0.0957, allocations: 427.3 kB / 495.9 MB, free: 5.793 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007831/0.0965, allocations: 0.8027 MB / 496.7 MB, free: 4.988 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003375/0.09684, allocations: 234.3 kB / 496.9 MB, free: 4.746 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003662/0.09722, allocations: 282.6 kB / 497.2 MB, free: 4.469 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003513/0.09758, allocations: 322.4 kB / 497.5 MB, free: 4.152 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.311e-05/0.09765, allocations: 20 kB / 497.5 MB, free: 4.133 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.423e-05/0.09772, allocations: 24 kB / 497.6 MB, free: 4.109 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001559/0.09789, allocations: 151.3 kB / 497.7 MB, free: 3.961 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002283/0.09812, allocations: 303.8 kB / 498 MB, free: 3.656 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004229/0.09855, allocations: 0.5339 MB / 498.5 MB, free: 3.121 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.09856, allocations: 0 / 498.5 MB, free: 3.121 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.09857, allocations: 0 / 498.5 MB, free: 3.121 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.248e-06/0.09859, allocations: 0 / 498.5 MB, free: 3.121 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.001877/0.1005, allocations: 1.055 MB / 499.6 MB, free: 2.012 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.1005, allocations: 12.02 kB / 499.6 MB, free: 2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001304/0.1006, allocations: 95.81 kB / 499.7 MB, free: 1.906 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008092/0.1015, allocations: 0.5545 MB / 0.4885 GB, free: 1.309 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.808e-05/0.1015, allocations: 45.38 kB / 0.4886 GB, free: 1.266 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.809e-05/0.1016, allocations: 56.38 kB / 0.4886 GB, free: 1.211 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.1027, allocations: 0.6294 MB / 0.4892 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.1027, allocations: 7.906 kB / 0.4892 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.683e-05/0.1027, allocations: 16 kB / 0.4893 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.1028, allocations: 15.98 kB / 0.4893 GB, free: 500 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001015/0.1038, allocations: 0.4899 MB / 0.4898 GB, free: 0 / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1506/0.2544, allocations: 2.681 MB / 0.4924 GB, free: 41.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.2555, allocations: 0.5766 MB / 0.4929 GB, free: 41.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005479/0.2561, allocations: 275.1 kB / 0.4932 GB, free: 41.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.019e-05/0.2562, allocations: 6.172 kB / 0.4932 GB, free: 41.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.002e-05/0.2562, allocations: 47.23 kB / 0.4932 GB, free: 41.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 2.926e-06/0.2562, allocations: 0 / 0.4932 GB, free: 41.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.00233/0.2585, allocations: 1.203 MB / 0.4944 GB, free: 41.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.2586, allocations: 137.5 kB / 0.4946 GB, free: 41.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007943/0.2594, allocations: 0.651 MB / 0.4952 GB, free: 40.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.954e-05/0.2594, allocations: 35.05 kB / 0.4952 GB, free: 40.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.2596, allocations: 364.3 kB / 0.4956 GB, free: 40.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.2598, allocations: 173.2 kB / 0.4957 GB, free: 40.63 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.2e-05/0.2598, allocations: 12.72 kB / 0.4957 GB, free: 40.63 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.826e-05/0.2598, allocations: 329 kB / 0.4961 GB, free: 40.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005757/0.2604, allocations: 286.9 kB / 0.4963 GB, free: 40.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006609/0.2611, allocations: 455.6 kB / 0.4968 GB, free: 40.13 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.2623, allocations: 0.7104 MB / 0.4975 GB, free: 39.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.2623, allocations: 1.375 kB / 0.4975 GB, free: 39.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001551/0.2639, allocations: 0.8402 MB / 0.4983 GB, free: 39.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.624e-05/0.264, allocations: 218.1 kB / 0.4985 GB, free: 39.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.264, allocations: 5.25 kB / 0.4985 GB, free: 39.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.264, allocations: 8.281 kB / 0.4985 GB, free: 39.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006332/0.2646, allocations: 166.8 kB / 0.4987 GB, free: 39.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.2647, allocations: 6.938 kB / 0.4987 GB, free: 39.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005024/0.2652, allocations: 98.61 kB / 0.4988 GB, free: 39.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.273e-05/0.2652, allocations: 21.56 kB / 0.4988 GB, free: 39.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.643e-06/0.2652, allocations: 8.75 kB / 0.4988 GB, free: 39.54 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001262/0.2665, allocations: 0.7188 MB / 0.4995 GB, free: 39.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.2665, allocations: 2.812 kB / 0.4995 GB, free: 39.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.323e-06/0.2665, allocations: 8.438 kB / 0.4995 GB, free: 39.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005377/0.2671, allocations: 155.9 kB / 0.4997 GB, free: 39.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.2671, allocations: 12.03 kB / 0.4997 GB, free: 39.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004356/0.2675, allocations: 77.33 kB / 0.4997 GB, free: 39.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.513e-05/0.2676, allocations: 21.47 kB / 0.4998 GB, free: 39.37 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * 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 0.0002442/0.2678, allocations: 307.6 kB / 0.5001 GB, free: 39.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.268, allocations: 76.72 kB / 0.5001 GB, free: 39.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000149/0.2681, allocations: 88.83 kB / 0.5002 GB, free: 39.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.2681, allocations: 6 kB / 0.5002 GB, free: 39.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.2681, allocations: 0 / 0.5002 GB, free: 39.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.2681, allocations: 6.375 kB / 0.5002 GB, free: 39.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001071/0.2692, allocations: 0.8672 MB / 0.5011 GB, free: 38.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2692, allocations: 0 / 0.5011 GB, free: 38.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005862/0.2698, allocations: 113.2 kB / 0.5012 GB, free: 38.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.2698, allocations: 2.719 kB / 0.5012 GB, free: 38.49 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.521e-05/0.2699, allocations: 21.34 kB / 0.5012 GB, free: 38.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.2699, allocations: 3.562 kB / 0.5012 GB, free: 38.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2699, allocations: 0 / 0.5012 GB, free: 38.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.2716, allocations: 1.201 MB / 0.5024 GB, free: 37.91 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000189/0.2718, allocations: 195.4 kB / 0.5026 GB, free: 37.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.864e-05/0.2719, allocations: 14.94 kB / 0.5026 GB, free: 37.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004928/0.2724, allocations: 63.97 kB / 0.5026 GB, free: 37.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.2725, allocations: 38.19 kB / 0.5027 GB, free: 37.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.904e-05/0.2725, allocations: 18.55 kB / 0.5027 GB, free: 37.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005202/0.273, allocations: 462.7 kB / 0.5031 GB, free: 37.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2731, allocations: 0 / 0.5031 GB, free: 37.53 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006736/0.2737, allocations: 196.6 kB / 0.5033 GB, free: 37.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * 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 Backend phase and start with SimCode phase: time 0.000103/0.2738, allocations: 105.5 kB / 0.5034 GB, free: 37.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001896/0.2757, allocations: 1.018 MB / 0.5044 GB, free: 37.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.2758, allocations: 0 / 0.5044 GB, free: 37.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005803/0.2763, allocations: 305.5 kB / 0.5047 GB, free: 37.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.2774, allocations: 170.5 kB / 0.5049 GB, free: 37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/0.2794, allocations: 1.765 MB / 0.5066 GB, free: 36.01 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.2797, allocations: 0.9608 MB / 0.5075 GB, free: 35.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002108/0.2799, allocations: 46.22 kB / 0.5076 GB, free: 35.28 MB / 378.7 MB Notification: Performance of SimCode: time 2.01e-07/0.2799, allocations: 0 / 0.5076 GB, free: 35.28 MB / 378.7 MB Notification: Performance of Templates: time 0.009509/0.2894, allocations: 8.68 MB / 0.5161 GB, free: 34.52 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Continuous_InitialState/Continuous_InitialState.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches