Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001985/0.001985, allocations: 196.5 kB / 18.1 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 226.5 MB / 245.4 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008981/0.0008978, allocations: 93.06 kB / 297.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002162/0.0002163, allocations: 8 kB / 358.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.2198, allocations: 51.28 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1007/0.3206, allocations: 79.23 MB / 488.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002835/0.3209, allocations: 71.97 kB / 488.7 MB, free: 12.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01371/0.3346, allocations: 4.528 MB / 493.2 MB, free: 7.703 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.3347, allocations: 0 / 493.2 MB, free: 7.703 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.438e-05/0.3347, allocations: 11.94 kB / 493.2 MB, free: 7.691 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.0009251/0.3357, allocations: 0.5261 MB / 493.7 MB, free: 7.113 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.3357, allocations: 8.031 kB / 493.7 MB, free: 7.105 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001654/0.3359, allocations: 28.66 kB / 493.8 MB, free: 7.078 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003565/0.3363, allocations: 267.7 kB / 494 MB, free: 6.777 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.339e-05/0.3363, allocations: 12.81 kB / 494 MB, free: 6.766 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.556e-05/0.3364, allocations: 24.38 kB / 494.1 MB, free: 6.742 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004844/0.3369, allocations: 259.2 kB / 494.3 MB, free: 6.473 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.3369, allocations: 192 / 494.3 MB, free: 6.473 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.359e-05/0.3369, allocations: 19.92 kB / 494.3 MB, free: 6.453 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.585e-05/0.337, allocations: 12.44 kB / 494.3 MB, free: 6.441 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004399/0.3374, allocations: 201.6 kB / 494.5 MB, free: 6.246 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.3387, allocations: 0.8302 MB / 495.4 MB, free: 5.355 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000341/0.3391, allocations: 181.9 kB / 495.5 MB, free: 5.172 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002116/0.3393, allocations: 112.8 kB / 495.7 MB, free: 5.059 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.549e-05/0.3394, allocations: 85.09 kB / 495.7 MB, free: 4.957 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.861e-05/0.3394, allocations: 30.94 kB / 495.8 MB, free: 4.918 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.713e-06/0.3394, allocations: 4 kB / 495.8 MB, free: 4.914 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006786/0.3401, allocations: 317.1 kB / 496.1 MB, free: 4.598 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.839e-05/0.3402, allocations: 55.41 kB / 496.1 MB, free: 4.531 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002204/0.3404, allocations: 213 kB / 496.3 MB, free: 4.312 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.3404, allocations: 33.64 kB / 496.4 MB, free: 4.273 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.3405, allocations: 152.3 kB / 496.5 MB, free: 4.121 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.666e-05/0.3406, allocations: 74.89 kB / 496.6 MB, free: 4.047 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.266e-05/0.3406, allocations: 8 kB / 496.6 MB, free: 4.039 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3408, allocations: 334.8 kB / 496.9 MB, free: 3.703 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001937/0.341, allocations: 88.34 kB / 497 MB, free: 3.613 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.3412, allocations: 117.2 kB / 497.1 MB, free: 3.488 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004079/0.3416, allocations: 229.6 kB / 497.4 MB, free: 3.254 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3416, allocations: 0 / 497.4 MB, free: 3.254 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000527/0.3422, allocations: 280.1 kB / 497.6 MB, free: 2.977 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.3422, allocations: 11.94 kB / 497.6 MB, free: 2.965 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.3422, allocations: 0 / 497.6 MB, free: 2.965 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.3423, allocations: 0 / 497.6 MB, free: 2.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003156/0.3426, allocations: 67.95 kB / 497.7 MB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.3426, allocations: 4 kB / 497.7 MB, free: 2.895 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001467/0.3428, allocations: 31.73 kB / 497.7 MB, free: 2.863 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.941e-05/0.3428, allocations: 11.98 kB / 497.8 MB, free: 2.852 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.000144/0.3429, allocations: 133.8 kB / 497.9 MB, free: 2.711 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.081e-05/0.343, allocations: 19.75 kB / 497.9 MB, free: 2.691 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005763/0.3436, allocations: 291.7 kB / 498.2 MB, free: 2.406 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.3436, allocations: 4 kB / 498.2 MB, free: 2.402 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.3436, allocations: 3.984 kB / 498.2 MB, free: 2.398 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.3436, allocations: 0 / 498.2 MB, free: 2.398 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.3447, allocations: 0.6738 MB / 498.9 MB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3447, allocations: 0 / 498.9 MB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002615/0.3449, allocations: 51.91 kB / 498.9 MB, free: 1.617 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.345, allocations: 8 kB / 498.9 MB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.317e-05/0.345, allocations: 4 kB / 498.9 MB, free: 1.605 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.345, allocations: 4 kB / 498.9 MB, free: 1.602 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.345, allocations: 0 / 498.9 MB, free: 1.602 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000776/0.3458, allocations: 483.3 kB / 499.4 MB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.3459, allocations: 116.8 kB / 499.5 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.174e-05/0.3459, allocations: 8 kB / 499.5 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.3461, allocations: 15.98 kB / 499.6 MB, free: 0.957 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.652e-05/0.3462, allocations: 23.91 kB / 499.6 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.3462, allocations: 4 kB / 499.6 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001645/0.3463, allocations: 156.5 kB / 499.7 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3464, allocations: 4 kB / 499.7 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003185/0.3467, allocations: 55.84 kB / 499.8 MB, free: 0.7148 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.0001615/0.3468, allocations: 123.1 kB / 499.9 MB, free: 0.582 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004725/0.3473, allocations: 220 kB / 0.4884 GB, free: 376 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3473, allocations: 0 / 0.4884 GB, free: 376 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002209/0.3476, allocations: 123.8 kB / 0.4885 GB, free: 252 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.3479, allocations: 24.61 kB / 0.4885 GB, free: 228 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.3492, allocations: 0.8081 MB / 0.4893 GB, free: 15.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000334/0.3495, allocations: 0.7677 MB / 0.4901 GB, free: 14.59 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001376/0.3496, allocations: 49.91 kB / 0.4901 GB, free: 14.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.174e-05/0.3497, allocations: 23.42 kB / 0.4902 GB, free: 14.52 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3497, allocations: 3.938 kB / 0.4902 GB, free: 14.51 MB / 378.7 MB Notification: Performance of Templates: time 0.004847/0.3546, allocations: 1.714 MB / 0.4918 GB, free: 12.8 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches