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.001297/0.001297, allocations: 172.5 kB / 17.39 MB, free: 4.188 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.356/1.356, allocations: 223.3 MB / 241.4 MB, free: 10 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009602/0.0009605, allocations: 95.72 kB / 292.6 MB, free: 10.58 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004937/0.0004938, allocations: 15.94 kB / 352.3 MB, free: 14.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.2993, allocations: 50.4 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09964/0.3989, allocations: 78.51 MB / 481.2 MB, free: 1.816 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002067/0.3992, allocations: 71.97 kB / 481.3 MB, free: 1.746 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01308/0.4123, allocations: 4.423 MB / 485.7 MB, free: 13.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4123, allocations: 0 / 485.7 MB, free: 13.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.592e-05/0.4124, allocations: 12 kB / 485.7 MB, free: 13.3 MB / 362.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.0008103/0.4132, allocations: 0.5184 MB / 486.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.4132, allocations: 12.02 kB / 486.3 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.341e-05/0.4133, allocations: 28.66 kB / 486.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.4137, allocations: 268.2 kB / 486.6 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.923e-05/0.4137, allocations: 16.81 kB / 486.6 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.943e-05/0.4138, allocations: 16.38 kB / 486.6 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005405/0.4143, allocations: 267.2 kB / 486.9 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.4144, allocations: 192 / 486.9 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.727e-05/0.4144, allocations: 15.86 kB / 486.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.169e-05/0.4144, allocations: 12.44 kB / 486.9 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004633/0.4149, allocations: 205.5 kB / 487.1 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.4163, allocations: 0.8224 MB / 487.9 MB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003723/0.4167, allocations: 190.4 kB / 488.1 MB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002014/0.4169, allocations: 104.8 kB / 488.2 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/0.417, allocations: 85.11 kB / 488.3 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.417, allocations: 42.94 kB / 488.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.643e-06/0.4171, allocations: 0 / 488.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007025/0.4178, allocations: 317.1 kB / 488.6 MB, free: 10.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/0.4178, allocations: 55.34 kB / 488.7 MB, free: 10.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002005/0.418, allocations: 213 kB / 488.9 MB, free: 9.922 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.4181, allocations: 29.7 kB / 488.9 MB, free: 9.887 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.918e-05/0.4181, allocations: 152.3 kB / 489.1 MB, free: 9.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.362e-05/0.4182, allocations: 78.89 kB / 489.2 MB, free: 9.652 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.157e-06/0.4182, allocations: 0 / 489.2 MB, free: 9.652 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.4184, allocations: 334.8 kB / 489.5 MB, free: 9.316 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002017/0.4186, allocations: 84.42 kB / 489.6 MB, free: 9.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.4188, allocations: 125.9 kB / 489.7 MB, free: 9.098 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004119/0.4192, allocations: 219.1 kB / 489.9 MB, free: 8.875 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.4192, allocations: 0 / 489.9 MB, free: 8.875 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005219/0.4198, allocations: 277.1 kB / 490.2 MB, free: 8.598 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.4198, allocations: 7.984 kB / 490.2 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.4198, allocations: 0 / 490.2 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.4198, allocations: 4 kB / 490.2 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002826/0.4201, allocations: 63.84 kB / 490.2 MB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.4202, allocations: 8.047 kB / 490.3 MB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.4203, allocations: 31.73 kB / 490.3 MB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.4203, allocations: 8 kB / 490.3 MB, free: 8.477 MB / 362.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 () * Number of clocked 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 0.0001467/0.4205, allocations: 141.8 kB / 490.4 MB, free: 8.328 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.075e-05/0.4205, allocations: 23.75 kB / 490.5 MB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005883/0.4211, allocations: 295.7 kB / 490.7 MB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.4212, allocations: 4 kB / 490.7 MB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.4212, allocations: 0 / 490.7 MB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.4212, allocations: 0 / 490.7 MB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009949/0.4222, allocations: 0.6597 MB / 491.4 MB, free: 7.297 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.4222, allocations: 0 / 491.4 MB, free: 7.297 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002685/0.4225, allocations: 55.91 kB / 491.5 MB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.4225, allocations: 0 / 491.5 MB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.41e-05/0.4225, allocations: 11.98 kB / 491.5 MB, free: 7.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.4225, allocations: 4 kB / 491.5 MB, free: 7.227 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4225, allocations: 3.938 kB / 491.5 MB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007529/0.4233, allocations: 483.3 kB / 492 MB, free: 6.734 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/0.4234, allocations: 120.8 kB / 492.1 MB, free: 6.598 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.414e-05/0.4235, allocations: 7.938 kB / 492.1 MB, free: 6.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.4236, allocations: 12.17 kB / 492.1 MB, free: 6.578 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.926e-05/0.4237, allocations: 19.97 kB / 492.1 MB, free: 6.559 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/0.4237, allocations: 8 kB / 492.1 MB, free: 6.551 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001356/0.4238, allocations: 160.5 kB / 492.3 MB, free: 6.398 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4238, allocations: 4 kB / 492.3 MB, free: 6.395 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003275/0.4242, allocations: 63.84 kB / 492.3 MB, free: 6.332 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 () * Number of clocked 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.0001888/0.4244, allocations: 107.2 kB / 492.4 MB, free: 6.215 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004816/0.4249, allocations: 215.9 kB / 492.7 MB, free: 6.004 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.4249, allocations: 0 / 492.7 MB, free: 6.004 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002123/0.4251, allocations: 127.8 kB / 492.8 MB, free: 5.879 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003372/0.4254, allocations: 28.59 kB / 492.8 MB, free: 5.852 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001247/0.4267, allocations: 0.8058 MB / 493.6 MB, free: 5.012 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.4271, allocations: 0.7677 MB / 494.4 MB, free: 4.219 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001482/0.4273, allocations: 49.91 kB / 494.4 MB, free: 4.168 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.563e-05/0.4273, allocations: 23.42 kB / 494.5 MB, free: 4.145 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4273, allocations: 0 / 494.5 MB, free: 4.145 MB / 362.7 MB Notification: Performance of Templates: time 0.005388/0.4327, allocations: 1.716 MB / 496.2 MB, free: 2.434 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/jenkins1/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