Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000925/0.0009251, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 221.5 MB / 230.3 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007938/0.0007939, allocations: 87.61 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.265e-05/1.266e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09417/0.09419, allocations: 50.42 MB / 387.5 MB, free: 7.59 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3305/0.4247, allocations: 77.74 MB / 465.2 MB, free: 1.137 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/0.4251, allocations: 63.97 kB / 465.3 MB, free: 1.074 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01298/0.438, allocations: 4.387 MB / 469.6 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.4381, allocations: 0 / 469.6 MB, free: 12.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.828e-05/0.4381, allocations: 7.984 kB / 469.6 MB, free: 12.68 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007016/0.4388, allocations: 0.5026 MB / 470.1 MB, free: 12.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.4389, allocations: 8.031 kB / 470.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.645e-05/0.4389, allocations: 27.72 kB / 470.2 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002856/0.4392, allocations: 254.9 kB / 470.4 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.4393, allocations: 8 kB / 470.4 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.683e-05/0.4393, allocations: 12 kB / 470.5 MB, free: 11.78 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000257/0.4396, allocations: 136.8 kB / 470.6 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003216/0.4399, allocations: 213.8 kB / 470.8 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.4399, allocations: 0 / 470.8 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.183e-05/0.4399, allocations: 3.984 kB / 470.8 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.584e-05/0.44, allocations: 12.44 kB / 470.8 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.4411, allocations: 0.7599 MB / 471.6 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000242/0.4413, allocations: 167.7 kB / 471.7 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.4414, allocations: 84.84 kB / 471.8 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.555e-05/0.4416, allocations: 93.03 kB / 471.9 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.25e-05/0.4416, allocations: 38.56 kB / 471.9 MB, free: 10.19 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/0.4416, allocations: 4 kB / 472 MB, free: 10.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003915/0.442, allocations: 201.6 kB / 472.1 MB, free: 9.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.575e-05/0.442, allocations: 51.41 kB / 472.2 MB, free: 9.918 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.4422, allocations: 159.1 kB / 472.4 MB, free: 9.754 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.4422, allocations: 25.7 kB / 472.4 MB, free: 9.723 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.804e-05/0.4423, allocations: 148.4 kB / 472.5 MB, free: 9.574 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.953e-05/0.4423, allocations: 82.75 kB / 472.6 MB, free: 9.492 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.173e-05/0.4424, allocations: 0.8438 kB / 472.6 MB, free: 9.492 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.4425, allocations: 338.8 kB / 472.9 MB, free: 9.152 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.4426, allocations: 63.92 kB / 473 MB, free: 9.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.4427, allocations: 99.59 kB / 473.1 MB, free: 8.977 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001434/0.4429, allocations: 80.89 kB / 473.2 MB, free: 8.898 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.4429, allocations: 0 / 473.2 MB, free: 8.898 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003394/0.4432, allocations: 228.1 kB / 473.4 MB, free: 8.672 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.4432, allocations: 9.312 kB / 473.4 MB, free: 8.664 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.4433, allocations: 0 / 473.4 MB, free: 8.664 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.4433, allocations: 7.938 kB / 473.4 MB, free: 8.656 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002894/0.4436, allocations: 63.89 kB / 473.5 MB, free: 8.594 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.4436, allocations: 4 kB / 473.5 MB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001436/0.4437, allocations: 24.69 kB / 473.5 MB, free: 8.566 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.4438, allocations: 11.98 kB / 473.5 MB, free: 8.555 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * 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 9.343e-05/0.4439, allocations: 108.9 kB / 473.6 MB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.548e-05/0.4439, allocations: 27.7 kB / 473.6 MB, free: 8.414 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004292/0.4444, allocations: 247.2 kB / 473.9 MB, free: 8.176 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.4444, allocations: 0 / 473.9 MB, free: 8.176 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.4444, allocations: 4 kB / 473.9 MB, free: 8.172 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.4444, allocations: 0 / 473.9 MB, free: 8.172 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007861/0.4452, allocations: 0.604 MB / 474.5 MB, free: 7.523 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.4452, allocations: 0 / 474.5 MB, free: 7.523 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003031/0.4455, allocations: 59.91 kB / 474.6 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.4455, allocations: 0 / 474.6 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.4456, allocations: 0 / 474.6 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.4456, allocations: 7.938 kB / 474.6 MB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.4456, allocations: 7.938 kB / 474.6 MB, free: 7.449 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005162/0.4461, allocations: 431.6 kB / 475 MB, free: 7.012 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.911e-05/0.4462, allocations: 120.8 kB / 475.1 MB, free: 6.875 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.187e-05/0.4462, allocations: 0 / 475.1 MB, free: 6.875 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.4464, allocations: 11.98 kB / 475.1 MB, free: 6.863 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.401e-05/0.4465, allocations: 23.91 kB / 475.1 MB, free: 6.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/0.4465, allocations: 8.141 kB / 475.2 MB, free: 6.832 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.451e-05/0.4466, allocations: 125.6 kB / 475.3 MB, free: 6.711 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4466, allocations: 0 / 475.3 MB, free: 6.711 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003058/0.4469, allocations: 59.83 kB / 475.3 MB, free: 6.652 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 27 * 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.0002034/0.4471, allocations: 103.2 kB / 475.4 MB, free: 6.539 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003103/0.4474, allocations: 190.1 kB / 475.6 MB, free: 6.355 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4474, allocations: 0 / 475.6 MB, free: 6.355 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.4476, allocations: 103.9 kB / 475.7 MB, free: 6.254 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002354/0.4478, allocations: 9.891 kB / 475.7 MB, free: 6.246 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009499/0.4488, allocations: 0.5742 MB / 476.3 MB, free: 5.648 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.4491, allocations: 0.775 MB / 477.1 MB, free: 4.848 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001447/0.4492, allocations: 54.02 kB / 477.1 MB, free: 4.797 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.447e-05/0.4493, allocations: 23.42 kB / 477.2 MB, free: 4.773 MB / 346.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4493, allocations: 0 / 477.2 MB, free: 4.773 MB / 346.7 MB Notification: Performance of Templates: time 0.004372/0.4537, allocations: 1.6 MB / 478.8 MB, free: 3.176 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches