Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.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) 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(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_trunk_cpp_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_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009477/0.0009518, allocations: 202.5 kB / 18.07 MB, free: 3.641 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.265/1.265, allocations: 226.5 MB / 245.4 MB, free: 8.164 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007194/0.0007194, allocations: 95.77 kB / 297.4 MB, free: 6.832 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002239/0.0002239, allocations: 8 kB / 357.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2041/0.2044, allocations: 51.28 MB / 408.6 MB, free: 27.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09103/0.2955, allocations: 79.22 MB / 487.9 MB, free: 12.35 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/0.2957, allocations: 67.97 kB / 487.9 MB, free: 12.28 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0139/0.3096, allocations: 4.541 MB / 492.5 MB, free: 7.73 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3097, allocations: 0 / 492.5 MB, free: 7.73 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.685e-05/0.3097, allocations: 4 kB / 492.5 MB, free: 7.727 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.0007135/0.3104, allocations: 0.5261 MB / 493 MB, free: 7.148 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.3105, allocations: 12.03 kB / 493 MB, free: 7.137 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.3106, allocations: 32.64 kB / 493 MB, free: 7.105 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002873/0.3109, allocations: 263.7 kB / 493.3 MB, free: 6.809 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.3109, allocations: 12.81 kB / 493.3 MB, free: 6.797 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.008e-05/0.311, allocations: 20.38 kB / 493.3 MB, free: 6.777 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000449/0.3114, allocations: 263.2 kB / 493.6 MB, free: 6.504 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.3114, allocations: 192 / 493.6 MB, free: 6.504 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.559e-05/0.3115, allocations: 11.94 kB / 493.6 MB, free: 6.492 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.629e-05/0.3115, allocations: 16.42 kB / 493.6 MB, free: 6.477 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004452/0.312, allocations: 205.5 kB / 493.8 MB, free: 6.277 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001185/0.3132, allocations: 0.8302 MB / 494.7 MB, free: 5.387 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003438/0.3135, allocations: 182.4 kB / 494.8 MB, free: 5.199 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002081/0.3137, allocations: 116.2 kB / 494.9 MB, free: 5.086 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.832e-05/0.3138, allocations: 81.11 kB / 495 MB, free: 4.988 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.159e-05/0.3139, allocations: 34.94 kB / 495.1 MB, free: 4.945 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.273e-06/0.3139, allocations: 0 / 495.1 MB, free: 4.945 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007368/0.3146, allocations: 321.1 kB / 495.4 MB, free: 4.625 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.3147, allocations: 59.33 kB / 495.4 MB, free: 4.555 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001976/0.3149, allocations: 217 kB / 495.6 MB, free: 4.332 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.588e-05/0.3149, allocations: 29.7 kB / 495.7 MB, free: 4.297 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.611e-05/0.315, allocations: 152.2 kB / 495.8 MB, free: 4.145 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.839e-05/0.3151, allocations: 74.91 kB / 495.9 MB, free: 4.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.382e-05/0.3151, allocations: 4 kB / 495.9 MB, free: 4.066 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.3152, allocations: 338.8 kB / 496.2 MB, free: 3.727 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001866/0.3154, allocations: 80.42 kB / 496.3 MB, free: 3.645 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002158/0.3157, allocations: 133.2 kB / 496.4 MB, free: 3.504 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003979/0.3161, allocations: 213.6 kB / 496.6 MB, free: 3.285 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3161, allocations: 4 kB / 496.7 MB, free: 3.281 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005085/0.3166, allocations: 280.2 kB / 496.9 MB, free: 3.004 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.3166, allocations: 7.984 kB / 496.9 MB, free: 2.996 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.3166, allocations: 0 / 496.9 MB, free: 2.996 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.3167, allocations: 4 kB / 496.9 MB, free: 2.992 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002829/0.3169, allocations: 63.97 kB / 497 MB, free: 2.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.317, allocations: 3.938 kB / 497 MB, free: 2.926 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.3171, allocations: 35.72 kB / 497 MB, free: 2.891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.3171, allocations: 8 kB / 497 MB, free: 2.883 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.0001381/0.3173, allocations: 137.8 kB / 497.2 MB, free: 2.738 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.564e-05/0.3173, allocations: 23.75 kB / 497.2 MB, free: 2.715 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000614/0.318, allocations: 295.7 kB / 497.5 MB, free: 2.426 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.318, allocations: 0 / 497.5 MB, free: 2.426 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.318, allocations: 4 kB / 497.5 MB, free: 2.422 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.318, allocations: 0 / 497.5 MB, free: 2.422 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.3191, allocations: 0.6621 MB / 498.2 MB, free: 1.703 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3191, allocations: 0 / 498.2 MB, free: 1.703 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002641/0.3193, allocations: 51.91 kB / 498.2 MB, free: 1.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.3194, allocations: 4 kB / 498.2 MB, free: 1.648 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.359e-05/0.3194, allocations: 8 kB / 498.2 MB, free: 1.641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.3194, allocations: 3.984 kB / 498.2 MB, free: 1.637 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3194, allocations: 0 / 498.2 MB, free: 1.637 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007718/0.3202, allocations: 483.5 kB / 498.7 MB, free: 1.148 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.3203, allocations: 120.7 kB / 498.8 MB, free: 1.012 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.3203, allocations: 8 kB / 498.8 MB, free: 1.004 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.3205, allocations: 23.91 kB / 498.8 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.682e-05/0.3206, allocations: 19.97 kB / 498.9 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.3206, allocations: 8 kB / 498.9 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001361/0.3207, allocations: 160.5 kB / 499 MB, free: 0.793 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3207, allocations: 0 / 499 MB, free: 0.793 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003084/0.3211, allocations: 59.84 kB / 499.1 MB, free: 0.7344 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.0001737/0.3212, allocations: 115.2 kB / 499.2 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004587/0.3217, allocations: 219.9 kB / 499.4 MB, free: 404 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3217, allocations: 0 / 499.4 MB, free: 404 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002086/0.3219, allocations: 119.8 kB / 499.5 MB, free: 284 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.3223, allocations: 28.59 kB / 499.6 MB, free: 256 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.3235, allocations: 0.8409 MB / 0.4887 GB, free: 15.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003234/0.3238, allocations: 0.756 MB / 0.4894 GB, free: 14.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.876e-05/0.3239, allocations: 31.42 kB / 0.4894 GB, free: 14.55 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3239, allocations: 0 / 0.4894 GB, free: 14.55 MB / 378.7 MB Notification: Performance of Templates: time 0.004489/0.3284, allocations: 2.751 MB / 0.4921 GB, free: 11.8 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches