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.002385/0.002385, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.093/2.093, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001142/0.001141, allocations: 93.64 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3215/0.3215, allocations: 43.48 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.19e-05/2.199e-05, allocations: 4.219 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3997/0.3997, allocations: 58.86 MB / 477.1 MB, free: 5.258 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1776/0.5774, allocations: 95.34 MB / 0.559 GB, free: 3.965 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.5778, allocations: 63.97 kB / 0.5591 GB, free: 3.902 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1376/0.7154, allocations: 27.84 MB / 0.5863 GB, free: 7.973 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.7155, allocations: 0 / 0.5863 GB, free: 7.973 MB / 427.1 MB Notification: Performance of Transformations before backend: time 0.0001139/0.7156, allocations: 23.94 kB / 0.5863 GB, free: 7.949 MB / 427.1 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.003329/0.719, allocations: 0.9506 MB / 0.5872 GB, free: 6.953 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.719, allocations: 8.031 kB / 0.5872 GB, free: 6.945 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004219/0.7195, allocations: 86.97 kB / 0.5873 GB, free: 6.859 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00189/0.7214, allocations: 0.5628 MB / 0.5878 GB, free: 6.254 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.681e-05/0.7215, allocations: 20 kB / 0.5879 GB, free: 6.234 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/0.7216, allocations: 39.91 kB / 0.5879 GB, free: 6.195 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001076/0.7227, allocations: 326.5 kB / 0.5882 GB, free: 5.879 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.724, allocations: 0.5016 MB / 0.5887 GB, free: 5.32 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.884e-05/0.724, allocations: 0 / 0.5887 GB, free: 5.32 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.806e-05/0.7241, allocations: 4 kB / 0.5887 GB, free: 5.316 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.181e-05/0.7241, allocations: 8 kB / 0.5887 GB, free: 5.309 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006469/0.7306, allocations: 2.623 MB / 0.5913 GB, free: 2.598 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.732, allocations: 453.3 kB / 0.5917 GB, free: 2.133 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005491/0.7325, allocations: 182.9 kB / 0.5919 GB, free: 1.945 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.301e-05/0.7326, allocations: 19.98 kB / 0.5919 GB, free: 1.926 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/0.7327, allocations: 42.48 kB / 0.5919 GB, free: 1.875 MB / 427.1 MB Notification: Performance of pre-optimization done (n=43): time 3.827e-06/0.7327, allocations: 0 / 0.5919 GB, free: 1.875 MB / 427.1 MB Notification: Performance of matching and sorting (n=44): time 0.002326/0.7351, allocations: 0.7638 MB / 0.5927 GB, free: 1.102 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.736e-05/0.7352, allocations: 136.6 kB / 0.5928 GB, free: 0.9375 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/0.7362, allocations: 0.492 MB / 0.5933 GB, free: 452 kB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001773/0.7364, allocations: 25.7 kB / 0.5933 GB, free: 420 kB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003714/0.7368, allocations: 375.1 kB / 0.5937 GB, free: 40 kB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003118/0.7371, allocations: 165.6 kB / 0.5938 GB, free: 15.87 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.655e-05/0.7372, allocations: 0 / 0.5938 GB, free: 15.87 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.7374, allocations: 334.8 kB / 0.5942 GB, free: 15.54 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000612/0.738, allocations: 193.5 kB / 0.5943 GB, free: 15.35 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007489/0.7388, allocations: 350.7 kB / 0.5947 GB, free: 14.93 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006938/0.7395, allocations: 241 kB / 0.5949 GB, free: 14.7 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.7395, allocations: 0 / 0.5949 GB, free: 14.7 MB / 443.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001672/0.7412, allocations: 0.5771 MB / 0.5955 GB, free: 14.12 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008942/0.7422, allocations: 1.753 MB / 0.5972 GB, free: 12.23 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.147e-05/0.7422, allocations: 4 kB / 0.5972 GB, free: 12.23 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.475e-05/0.7423, allocations: 8 kB / 0.5972 GB, free: 12.22 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001441/0.7437, allocations: 159.8 kB / 0.5973 GB, free: 12.06 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.205e-05/0.7438, allocations: 15.92 kB / 0.5974 GB, free: 12.05 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/0.7449, allocations: 79.62 kB / 0.5974 GB, free: 11.97 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-05/0.7451, allocations: 24 kB / 0.5975 GB, free: 11.95 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.7451, allocations: 7.125 kB / 0.5975 GB, free: 11.94 MB / 443.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001555/0.7466, allocations: 0.5034 MB / 0.598 GB, free: 11.44 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.7467, allocations: 4 kB / 0.598 GB, free: 11.43 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.7467, allocations: 12 kB / 0.598 GB, free: 11.42 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.748, allocations: 155.7 kB / 0.5981 GB, free: 11.27 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.504e-05/0.7481, allocations: 16.2 kB / 0.5981 GB, free: 11.25 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007236/0.7488, allocations: 63.53 kB / 0.5982 GB, free: 11.19 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-05/0.7489, allocations: 24 kB / 0.5982 GB, free: 11.17 MB / 443.1 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 () * 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.000228/0.7491, allocations: 116.8 kB / 0.5983 GB, free: 11.05 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003038/0.7495, allocations: 83 kB / 0.5984 GB, free: 10.96 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002887/0.7498, allocations: 85.72 kB / 0.5985 GB, free: 10.88 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-06/0.7498, allocations: 4 kB / 0.5985 GB, free: 10.87 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.7498, allocations: 0 / 0.5985 GB, free: 10.87 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.7498, allocations: 0 / 0.5985 GB, free: 10.87 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001816/0.7516, allocations: 0.7482 MB / 0.5992 GB, free: 10.08 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.7517, allocations: 96 / 0.5992 GB, free: 10.08 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/0.7531, allocations: 123.8 kB / 0.5993 GB, free: 9.961 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.655e-05/0.7532, allocations: 7.938 kB / 0.5994 GB, free: 9.953 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.7533, allocations: 15.98 kB / 0.5994 GB, free: 9.938 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.7533, allocations: 0 / 0.5994 GB, free: 9.938 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.708e-06/0.7533, allocations: 7.984 kB / 0.5994 GB, free: 9.93 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002083/0.7554, allocations: 0.9492 MB / 0.6003 GB, free: 8.949 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005546/0.756, allocations: 192.3 kB / 0.6005 GB, free: 8.742 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/0.7562, allocations: 4 kB / 0.6005 GB, free: 8.738 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.7573, allocations: 63.94 kB / 0.6006 GB, free: 8.676 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/0.7575, allocations: 39.94 kB / 0.6006 GB, free: 8.637 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.169e-05/0.7575, allocations: 15.92 kB / 0.6006 GB, free: 8.621 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.0007635/0.7583, allocations: 379.2 kB / 0.601 GB, free: 8.258 MB / 443.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.7583, allocations: 4 kB / 0.601 GB, free: 8.254 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.001283/0.7596, allocations: 175.9 kB / 0.6011 GB, free: 8.082 MB / 443.1 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 () * 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.000239/0.7599, allocations: 111 kB / 0.6012 GB, free: 7.965 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.002131/0.762, allocations: 0.7419 MB / 0.602 GB, free: 7.227 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.7621, allocations: 0 / 0.602 GB, free: 7.227 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006098/0.7627, allocations: 211.8 kB / 0.6022 GB, free: 7.02 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001556/0.7643, allocations: 151.2 kB / 0.6023 GB, free: 6.875 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003661/0.768, allocations: 1.222 MB / 0.6035 GB, free: 5.613 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008153/0.7688, allocations: 0.9769 MB / 0.6045 GB, free: 4.605 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004662/0.7693, allocations: 47.44 kB / 0.6045 GB, free: 4.559 MB / 443.1 MB Notification: Performance of SimCode: time 1.563e-06/0.7693, allocations: 0 / 0.6045 GB, free: 4.559 MB / 443.1 MB Notification: Performance of Templates: time 0.02259/0.7919, allocations: 8.459 MB / 0.6128 GB, free: 12.11 MB / 459.1 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/jenkins1/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