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.001001/0.001001, allocations: 174.9 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 221.3 MB / 235.5 MB, free: 2.91 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.0008003/0.0008004, allocations: 83.86 kB / 286.5 MB, free: 176 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.681e-05/2.682e-05, allocations: 0 / 343.8 MB, free: 4.309 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09644/0.09648, allocations: 50.42 MB / 394.2 MB, free: 1.852 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3061/0.4026, allocations: 78.39 MB / 472.6 MB, free: 9.145 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000165/0.4029, allocations: 71.8 kB / 472.7 MB, free: 9.078 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01229/0.4152, allocations: 4.418 MB / 477.1 MB, free: 4.652 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4152, allocations: 0 / 477.1 MB, free: 4.652 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.839e-05/0.4152, allocations: 8 kB / 477.1 MB, free: 4.645 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.0006121/0.4158, allocations: 0.5065 MB / 477.6 MB, free: 4.09 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.4159, allocations: 8.031 kB / 477.6 MB, free: 4.082 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.375e-05/0.4159, allocations: 23.72 kB / 477.7 MB, free: 4.059 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002832/0.4162, allocations: 250.6 kB / 477.9 MB, free: 3.773 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.477e-05/0.4163, allocations: 20.42 kB / 477.9 MB, free: 3.754 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.232e-05/0.4163, allocations: 20 kB / 478 MB, free: 3.734 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003819/0.4167, allocations: 238.7 kB / 478.2 MB, free: 3.488 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.4167, allocations: 0 / 478.2 MB, free: 3.488 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.4168, allocations: 8 kB / 478.2 MB, free: 3.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.944e-05/0.4168, allocations: 20.42 kB / 478.2 MB, free: 3.461 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002716/0.4171, allocations: 157.6 kB / 478.4 MB, free: 3.309 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.4182, allocations: 0.8304 MB / 479.2 MB, free: 2.414 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000252/0.4184, allocations: 167 kB / 479.4 MB, free: 2.242 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.4186, allocations: 93.14 kB / 479.5 MB, free: 2.148 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.319e-05/0.4187, allocations: 89.22 kB / 479.5 MB, free: 2.043 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/0.4187, allocations: 38.75 kB / 479.6 MB, free: 1.996 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.312e-06/0.4187, allocations: 0 / 479.6 MB, free: 1.996 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003316/0.419, allocations: 206.3 kB / 479.8 MB, free: 1.793 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.869e-05/0.4191, allocations: 55.41 kB / 479.8 MB, free: 1.727 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.4192, allocations: 188.9 kB / 480 MB, free: 1.535 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.4193, allocations: 25.7 kB / 480 MB, free: 1.504 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.954e-05/0.4193, allocations: 148.3 kB / 480.2 MB, free: 1.352 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.627e-05/0.4194, allocations: 78.84 kB / 480.3 MB, free: 1.273 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.142e-05/0.4194, allocations: 7.938 kB / 480.3 MB, free: 1.266 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.236e-05/0.4195, allocations: 338.8 kB / 480.6 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/0.4196, allocations: 60.45 kB / 480.7 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.4198, allocations: 100.3 kB / 480.8 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001257/0.4199, allocations: 72.48 kB / 480.8 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.4199, allocations: 4 kB / 480.8 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003285/0.4202, allocations: 239.8 kB / 481.1 MB, free: 452 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.4203, allocations: 4 kB / 481.1 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.4203, allocations: 0 / 481.1 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.4203, allocations: 7.953 kB / 481.1 MB, free: 440 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002819/0.4206, allocations: 63.89 kB / 481.1 MB, free: 376 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.543e-06/0.4206, allocations: 0 / 481.1 MB, free: 376 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.4207, allocations: 39.88 kB / 481.2 MB, free: 336 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.4208, allocations: 4 kB / 481.2 MB, free: 332 kB / 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 (28): * Single equations (assignments): 28 * 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 6.451e-05/0.4208, allocations: 116.9 kB / 481.3 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.275e-05/0.4209, allocations: 19.72 kB / 481.3 MB, free: 188 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003993/0.4213, allocations: 255.6 kB / 481.6 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.4213, allocations: 11.94 kB / 481.6 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.4213, allocations: 0 / 481.6 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.4213, allocations: 8 kB / 481.6 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007079/0.422, allocations: 0.6115 MB / 482.2 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.422, allocations: 0 / 482.2 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002711/0.4223, allocations: 55.91 kB / 482.3 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.4223, allocations: 7.938 kB / 482.3 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.4224, allocations: 8 kB / 482.3 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.4224, allocations: 3.938 kB / 482.3 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.4224, allocations: 4 kB / 482.3 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004774/0.4229, allocations: 423.4 kB / 482.7 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.374e-05/0.423, allocations: 116.8 kB / 482.8 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.423, allocations: 7.953 kB / 482.8 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.4232, allocations: 15.98 kB / 482.8 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.861e-05/0.4232, allocations: 15.97 kB / 482.8 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.4232, allocations: 7.938 kB / 482.9 MB, free: 14.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001269/0.4234, allocations: 161.4 kB / 483 MB, free: 14.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4234, allocations: 0 / 483 MB, free: 14.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002789/0.4237, allocations: 63.84 kB / 483.1 MB, free: 14.33 MB / 362.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 (26): * Single equations (assignments): 26 * 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.0001821/0.4239, allocations: 115.1 kB / 483.2 MB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003066/0.4242, allocations: 176.1 kB / 483.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4242, allocations: 0 / 483.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001407/0.4243, allocations: 103.8 kB / 483.5 MB, free: 13.94 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002511/0.4246, allocations: 22.2 kB / 483.5 MB, free: 13.92 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008821/0.4255, allocations: 0.5717 MB / 484 MB, free: 13.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002633/0.4258, allocations: 0.7714 MB / 484.8 MB, free: 12.52 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001274/0.4259, allocations: 42.03 kB / 484.9 MB, free: 12.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.041e-05/0.426, allocations: 23.44 kB / 484.9 MB, free: 12.46 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.426, allocations: 4 kB / 484.9 MB, free: 12.45 MB / 362.7 MB Notification: Performance of Templates: time 0.004226/0.4302, allocations: 1.719 MB / 486.6 MB, free: 10.74 MB / 362.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