Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001256/0.001256, allocations: 202.8 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008263/0.0008262, allocations: 102.7 kB / 299.9 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000315/0.0003154, allocations: 7.984 kB / 360.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3539/0.3542, allocations: 51.41 MB / 412 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002855/0.3572, allocations: 1.836 MB / 413.9 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.3588, allocations: 1.005 MB / 414.9 MB, free: 22.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001731/0.359, allocations: 4 kB / 414.9 MB, free: 22.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002261/0.3593, allocations: 36.16 kB / 414.9 MB, free: 22.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002312/0.3595, allocations: 37 kB / 415 MB, free: 22.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003419/0.3599, allocations: 88.59 kB / 415 MB, free: 22.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003117/0.3602, allocations: 224.4 kB / 415.3 MB, free: 22.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003178/0.3605, allocations: 117.4 kB / 415.4 MB, free: 22.49 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002441/0.3608, allocations: 63.66 kB / 415.4 MB, free: 22.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001773/0.361, allocations: 87.48 kB / 415.5 MB, free: 22.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.14e-05/0.361, allocations: 11.94 kB / 415.5 MB, free: 22.33 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.3611, allocations: 19.98 kB / 415.6 MB, free: 22.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.277e-05/0.3612, allocations: 39.83 kB / 415.6 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001169/0.3613, allocations: 117.1 kB / 415.7 MB, free: 22.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000336/0.3617, allocations: 220.6 kB / 415.9 MB, free: 21.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.628e-06/0.3617, allocations: 0 / 415.9 MB, free: 21.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.554e-06/0.3617, allocations: 0 / 415.9 MB, free: 21.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.3617, allocations: 0 / 415.9 MB, free: 21.94 MB / 298.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.0009048/0.3627, allocations: 0.5107 MB / 416.4 MB, free: 21.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.3627, allocations: 12.03 kB / 416.4 MB, free: 21.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.3629, allocations: 32.66 kB / 416.5 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002901/0.3632, allocations: 252.2 kB / 416.7 MB, free: 21.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.923e-05/0.3632, allocations: 12.81 kB / 416.7 MB, free: 21.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.22e-05/0.3633, allocations: 28.27 kB / 416.8 MB, free: 21.01 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005788/0.3639, allocations: 271 kB / 417 MB, free: 20.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/0.3639, allocations: 3.984 kB / 417 MB, free: 20.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.928e-05/0.3639, allocations: 12 kB / 417 MB, free: 20.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.246e-05/0.364, allocations: 16.36 kB / 417.1 MB, free: 20.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005508/0.3645, allocations: 201.6 kB / 417.3 MB, free: 20.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.3659, allocations: 0.8223 MB / 418.1 MB, free: 19.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004089/0.3663, allocations: 194.5 kB / 418.3 MB, free: 19.42 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002481/0.3665, allocations: 108.8 kB / 418.4 MB, free: 19.31 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001082/0.3667, allocations: 85.09 kB / 418.5 MB, free: 19.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.3667, allocations: 38.88 kB / 418.5 MB, free: 19.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.3667, allocations: 0 / 418.5 MB, free: 19.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001848/0.3686, allocations: 0.7526 MB / 419.3 MB, free: 18.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/0.3686, allocations: 59.33 kB / 419.3 MB, free: 18.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002267/0.3689, allocations: 209 kB / 419.5 MB, free: 18.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.3689, allocations: 33.7 kB / 419.5 MB, free: 18.03 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.656e-05/0.369, allocations: 148.4 kB / 419.7 MB, free: 17.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.901e-05/0.3691, allocations: 86.73 kB / 419.8 MB, free: 17.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.546e-05/0.3691, allocations: 4 kB / 419.8 MB, free: 17.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.199e-05/0.3692, allocations: 338.8 kB / 420.1 MB, free: 17.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002345/0.3695, allocations: 83.95 kB / 420.2 MB, free: 17.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002677/0.3697, allocations: 127.4 kB / 420.3 MB, free: 17.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000502/0.3702, allocations: 229.6 kB / 420.5 MB, free: 17 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.3703, allocations: 4 kB / 420.5 MB, free: 17 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005971/0.3709, allocations: 273.3 kB / 420.8 MB, free: 16.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.3709, allocations: 8 kB / 420.8 MB, free: 16.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3709, allocations: 0 / 420.8 MB, free: 16.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.371, allocations: 4 kB / 420.8 MB, free: 16.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003654/0.3713, allocations: 67.95 kB / 420.9 MB, free: 16.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.432e-05/0.3714, allocations: 4 kB / 420.9 MB, free: 16.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001675/0.3715, allocations: 15.98 kB / 420.9 MB, free: 16.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/0.3716, allocations: 11.98 kB / 420.9 MB, free: 16.61 MB / 298.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 (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001848/0.3718, allocations: 145.7 kB / 421.1 MB, free: 16.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.653e-05/0.3718, allocations: 23.72 kB / 421.1 MB, free: 16.44 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007211/0.3726, allocations: 313.8 kB / 421.4 MB, free: 16.13 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.3726, allocations: 4 kB / 421.4 MB, free: 16.13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.3726, allocations: 0 / 421.4 MB, free: 16.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.3726, allocations: 0 / 421.4 MB, free: 16.13 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.3738, allocations: 0.6904 MB / 422.1 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3738, allocations: 7.969 kB / 422.1 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003463/0.3741, allocations: 55.97 kB / 422.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.3742, allocations: 4 kB / 422.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.587e-05/0.3742, allocations: 8 kB / 422.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.3742, allocations: 3.938 kB / 422.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3742, allocations: 4 kB / 422.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008997/0.3751, allocations: 499.2 kB / 422.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.358e-05/0.3752, allocations: 116.9 kB / 422.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.233e-05/0.3753, allocations: 8 kB / 422.8 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001998/0.3755, allocations: 23.92 kB / 422.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.073e-05/0.3756, allocations: 23.89 kB / 422.8 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.3756, allocations: 8 kB / 422.8 MB, free: 14.59 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001683/0.3758, allocations: 156.5 kB / 423 MB, free: 14.44 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.3758, allocations: 0 / 423 MB, free: 14.44 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004221/0.3762, allocations: 52 kB / 423 MB, free: 14.39 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,der1.u) * 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 (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001782/0.3764, allocations: 115.2 kB / 423.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005842/0.377, allocations: 225.8 kB / 423.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.377, allocations: 0 / 423.4 MB, free: 14.05 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00027/0.3773, allocations: 128.1 kB / 423.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004694/0.3778, allocations: 32.92 kB / 423.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.3792, allocations: 0.8435 MB / 424.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002293/0.3794, allocations: 0.7642 MB / 425.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001712/0.3796, allocations: 45.89 kB / 425.2 MB, free: 12.19 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.955e-05/0.3797, allocations: 27.44 kB / 425.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of SimCode: time 4.71e-07/0.3797, allocations: 7.938 kB / 425.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of Templates: time 0.006172/0.3859, allocations: 1.847 MB / 427.1 MB, free: 10.3 MB / 298.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/jenkins/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