Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.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.Continuous_InitialOutput,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_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput") translateModel(ModelicaTest.Blocks.Continuous_InitialOutput,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_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001392/0.001392, allocations: 197.7 kB / 16.79 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 226.5 MB / 244.1 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008172/0.0008172, allocations: 99.95 kB / 296.1 MB, free: 6.66 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3322/0.3322, allocations: 44.82 MB / 393 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003125/0.0003125, allocations: 11.98 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.377/0.3773, allocations: 62.94 MB / 0.5165 GB, free: 37.28 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1328/0.5102, allocations: 97.96 MB / 0.6121 GB, free: 7.402 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/0.5104, allocations: 67.97 kB / 0.6122 GB, free: 7.336 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08464/0.5951, allocations: 29.37 MB / 0.6409 GB, free: 9.871 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5951, allocations: 0 / 0.6409 GB, free: 9.871 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.834e-05/0.5952, allocations: 20 kB / 0.6409 GB, free: 9.852 MB / 458.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.002205/0.5974, allocations: 1.098 MB / 0.642 GB, free: 8.699 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.5975, allocations: 12.03 kB / 0.642 GB, free: 8.688 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003362/0.5978, allocations: 111.8 kB / 0.6421 GB, free: 8.578 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/0.599, allocations: 0.6258 MB / 0.6427 GB, free: 7.91 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.976e-05/0.5991, allocations: 45.31 kB / 0.6427 GB, free: 7.867 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.508e-05/0.5992, allocations: 52.38 kB / 0.6428 GB, free: 7.816 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.6003, allocations: 0.618 MB / 0.6434 GB, free: 7.141 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.288e-05/0.6004, allocations: 11.81 kB / 0.6434 GB, free: 7.129 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.331e-05/0.6004, allocations: 16 kB / 0.6434 GB, free: 7.113 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.6005, allocations: 12 kB / 0.6434 GB, free: 7.102 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.6015, allocations: 485.8 kB / 0.6439 GB, free: 6.629 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003637/0.6052, allocations: 2.664 MB / 0.6465 GB, free: 3.859 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.6062, allocations: 0.5189 MB / 0.647 GB, free: 3.32 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000554/0.6068, allocations: 275 kB / 0.6473 GB, free: 3.043 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.324e-05/0.6068, allocations: 4.234 kB / 0.6473 GB, free: 3.039 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.6069, allocations: 46.72 kB / 0.6473 GB, free: 2.984 MB / 458.7 MB Notification: Performance of pre-optimization done (n=45): time 2.535e-06/0.6069, allocations: 0 / 0.6473 GB, free: 2.984 MB / 458.7 MB Notification: Performance of matching and sorting (n=46): time 0.002509/0.6094, allocations: 1.174 MB / 0.6485 GB, free: 1.801 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.434e-05/0.6095, allocations: 114.8 kB / 0.6486 GB, free: 1.664 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000867/0.6104, allocations: 0.6489 MB / 0.6492 GB, free: 1.004 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.628e-05/0.6104, allocations: 33.7 kB / 0.6492 GB, free: 0.9648 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002514/0.6107, allocations: 352.7 kB / 0.6496 GB, free: 0.6133 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.6108, allocations: 181.4 kB / 0.6497 GB, free: 444 kB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.727e-05/0.6109, allocations: 16 kB / 0.6498 GB, free: 428 kB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.611, allocations: 333.9 kB / 0.6501 GB, free: 88 kB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006434/0.6117, allocations: 281.1 kB / 0.6503 GB, free: 15.81 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007078/0.6124, allocations: 439.5 kB / 0.6508 GB, free: 15.32 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001356/0.6137, allocations: 0.7207 MB / 0.6515 GB, free: 14.54 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.6138, allocations: 4 kB / 0.6515 GB, free: 14.54 MB / 474.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001664/0.6154, allocations: 0.824 MB / 0.6523 GB, free: 13.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000165/0.6156, allocations: 225.8 kB / 0.6525 GB, free: 13.42 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.6156, allocations: 4 kB / 0.6525 GB, free: 13.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.752e-05/0.6157, allocations: 8 kB / 0.6525 GB, free: 13.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009977/0.6167, allocations: 207.7 kB / 0.6527 GB, free: 13.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.735e-05/0.6167, allocations: 11.94 kB / 0.6527 GB, free: 13.19 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005492/0.6173, allocations: 95.41 kB / 0.6528 GB, free: 13.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.526e-05/0.6173, allocations: 28 kB / 0.6528 GB, free: 13.07 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.732e-06/0.6173, allocations: 4 kB / 0.6528 GB, free: 13.07 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001429/0.6188, allocations: 0.7261 MB / 0.6535 GB, free: 12.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.6188, allocations: 4 kB / 0.6535 GB, free: 12.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.216e-06/0.6188, allocations: 12.03 kB / 0.6536 GB, free: 12.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008991/0.6197, allocations: 199.8 kB / 0.6537 GB, free: 12.13 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.299e-05/0.6197, allocations: 15.92 kB / 0.6538 GB, free: 12.11 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005158/0.6203, allocations: 79.64 kB / 0.6538 GB, free: 12.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.052e-05/0.6203, allocations: 24 kB / 0.6539 GB, free: 12.01 MB / 474.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 (78): * Single equations (assignments): 77 * Array equations: 1 * 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.0004188/0.6207, allocations: 291.7 kB / 0.6541 GB, free: 11.72 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.6209, allocations: 83.06 kB / 0.6542 GB, free: 11.64 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001853/0.6211, allocations: 90.89 kB / 0.6543 GB, free: 11.55 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.6211, allocations: 4 kB / 0.6543 GB, free: 11.54 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.6211, allocations: 4 kB / 0.6543 GB, free: 11.54 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.6211, allocations: 0 / 0.6543 GB, free: 11.54 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001962/0.6231, allocations: 1.264 MB / 0.6555 GB, free: 10.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.436e-05/0.6231, allocations: 12.05 kB / 0.6556 GB, free: 10.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000636/0.6238, allocations: 115.8 kB / 0.6557 GB, free: 10.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.6238, allocations: 0 / 0.6557 GB, free: 10.09 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.17e-05/0.6238, allocations: 19.98 kB / 0.6557 GB, free: 10.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.6238, allocations: 4 kB / 0.6557 GB, free: 10.06 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.6239, allocations: 4 kB / 0.6557 GB, free: 10.06 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001982/0.6258, allocations: 1.2 MB / 0.6569 GB, free: 8.836 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002469/0.6261, allocations: 192.2 kB / 0.6571 GB, free: 8.629 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.41e-05/0.6262, allocations: 16 kB / 0.6571 GB, free: 8.613 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005128/0.6267, allocations: 59.94 kB / 0.6571 GB, free: 8.555 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.6268, allocations: 43.88 kB / 0.6572 GB, free: 8.512 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-05/0.6269, allocations: 16.09 kB / 0.6572 GB, free: 8.496 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0006425/0.6275, allocations: 459 kB / 0.6576 GB, free: 8.051 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6275, allocations: 0 / 0.6576 GB, free: 8.051 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0009271/0.6285, allocations: 231.9 kB / 0.6578 GB, free: 7.824 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (46): * Single equations (assignments): 46 * 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.0003329/0.6288, allocations: 167 kB / 0.658 GB, free: 7.652 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002172/0.631, allocations: 1.023 MB / 0.659 GB, free: 6.633 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.631, allocations: 0 / 0.659 GB, free: 6.633 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000654/0.6317, allocations: 310.8 kB / 0.6593 GB, free: 6.332 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.6328, allocations: 166.6 kB / 0.6595 GB, free: 6.176 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002658/0.6355, allocations: 1.753 MB / 0.6612 GB, free: 4.363 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005528/0.636, allocations: 0.9504 MB / 0.6621 GB, free: 3.383 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002435/0.6363, allocations: 47.44 kB / 0.6621 GB, free: 3.34 MB / 474.7 MB Notification: Performance of SimCode: time 5.92e-07/0.6363, allocations: 3.938 kB / 0.6621 GB, free: 3.336 MB / 474.7 MB Notification: Performance of Templates: time 0.01356/0.6499, allocations: 9.072 MB / 0.671 GB, free: 10.31 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous_InitialOutput/Continuous_InitialOutput.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches