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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 108.7 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009804/0.0009804, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 46.91 kB / 300.6 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.141, allocations: 49.44 MB / 350 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.005313/0.1464, allocations: 2.199 MB / 352.2 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001628/0.148, allocations: 0.6893 MB / 352.9 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003249/0.1484, allocations: 7.938 kB / 352.9 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002414/0.1486, allocations: 43.53 kB / 353 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003209/0.149, allocations: 51.58 kB / 353 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004369/0.1494, allocations: 101 kB / 353.1 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004429/0.1499, allocations: 239.6 kB / 353.4 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003002/0.1502, allocations: 111.6 kB / 353.5 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000231/0.1505, allocations: 87.64 kB / 353.6 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002093/0.1507, allocations: 119.4 kB / 353.7 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.29e-05/0.1507, allocations: 16 kB / 353.7 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.1508, allocations: 24 kB / 353.7 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.151, allocations: 67.75 kB / 353.8 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.1511, allocations: 103.3 kB / 353.9 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003588/0.1515, allocations: 235.4 kB / 354.1 MB, free: 324 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1515, allocations: 0 / 354.1 MB, free: 324 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.1515, allocations: 0 / 354.1 MB, free: 324 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.266e-05/0.1515, allocations: 0 / 354.1 MB, free: 324 kB / 286.1 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.001057/0.1526, allocations: 0.5418 MB / 354.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.1526, allocations: 15.89 kB / 354.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.23e-05/0.1527, allocations: 28.56 kB / 354.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003384/0.153, allocations: 256.3 kB / 355 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.98e-05/0.1531, allocations: 16.81 kB / 355 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.091e-05/0.1531, allocations: 24.12 kB / 355 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005704/0.1537, allocations: 258.7 kB / 355.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.1538, allocations: 0 / 355.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.535e-05/0.1538, allocations: 19.97 kB / 355.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.615e-05/0.1538, allocations: 8.438 kB / 355.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005311/0.1544, allocations: 197.5 kB / 355.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00153/0.1559, allocations: 0.8223 MB / 356.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000457/0.1564, allocations: 182.5 kB / 356.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002575/0.1567, allocations: 105.2 kB / 356.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001931/0.1569, allocations: 93.03 kB / 356.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.395e-05/0.1569, allocations: 30.56 kB / 356.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.723e-06/0.1569, allocations: 0 / 356.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001795/0.1587, allocations: 0.7269 MB / 357.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/0.1588, allocations: 51.41 kB / 357.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002549/0.1591, allocations: 224.9 kB / 357.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.674e-05/0.1591, allocations: 25.7 kB / 357.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.1593, allocations: 160.3 kB / 357.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.941e-05/0.1593, allocations: 74.83 kB / 357.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.867e-05/0.1594, allocations: 53.69 kB / 358 MB, free: 12.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1596, allocations: 338.8 kB / 358.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001935/0.1598, allocations: 79.95 kB / 358.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/0.16, allocations: 131.9 kB / 358.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004194/0.1605, allocations: 204.8 kB / 358.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1605, allocations: 0 / 358.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005471/0.161, allocations: 283.5 kB / 359 MB, free: 11.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.1611, allocations: 7.938 kB / 359 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.1611, allocations: 8 kB / 359 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.1611, allocations: 0 / 359 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002944/0.1614, allocations: 59.89 kB / 359.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.1614, allocations: 4 kB / 359.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/0.1616, allocations: 15.98 kB / 359.1 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/0.1616, allocations: 11.94 kB / 359.1 MB, free: 10.99 MB / 302.1 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.0001403/0.1617, allocations: 149.8 kB / 359.3 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.279e-05/0.1618, allocations: 23.72 kB / 359.3 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005963/0.1624, allocations: 288.3 kB / 359.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1624, allocations: 4 kB / 359.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1624, allocations: 0 / 359.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.1624, allocations: 3.984 kB / 359.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/0.1635, allocations: 0.6873 MB / 360.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.1635, allocations: 0 / 360.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002728/0.1638, allocations: 59.89 kB / 360.3 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.1638, allocations: 4 kB / 360.3 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.253e-05/0.1638, allocations: 11.94 kB / 360.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.1638, allocations: 4.031 kB / 360.3 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1638, allocations: 0 / 360.3 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000797/0.1647, allocations: 480.5 kB / 360.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.1648, allocations: 120.8 kB / 360.9 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.643e-05/0.1648, allocations: 3.938 kB / 360.9 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001499/0.165, allocations: 23.92 kB / 361 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.469e-05/0.165, allocations: 19.97 kB / 361 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.1651, allocations: 7.938 kB / 361 MB, free: 9.012 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001456/0.1652, allocations: 156.5 kB / 361.1 MB, free: 8.859 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1652, allocations: 0 / 361.1 MB, free: 8.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003225/0.1655, allocations: 48 kB / 361.2 MB, free: 8.812 MB / 302.1 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.0001864/0.1657, allocations: 111.1 kB / 361.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005623/0.1663, allocations: 251.7 kB / 361.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1663, allocations: 0 / 361.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002296/0.1666, allocations: 123.8 kB / 361.7 MB, free: 8.328 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/0.1669, allocations: 28.36 kB / 361.7 MB, free: 8.301 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.1681, allocations: 0.6949 MB / 362.4 MB, free: 7.578 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000357/0.1685, allocations: 0.7639 MB / 363.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001286/0.1686, allocations: 45.91 kB / 363.2 MB, free: 6.742 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.454e-05/0.1687, allocations: 23.38 kB / 363.2 MB, free: 6.719 MB / 302.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1687, allocations: 0 / 363.2 MB, free: 6.719 MB / 302.1 MB Notification: Performance of Templates: time 0.006045/0.1748, allocations: 2.034 MB / 365.2 MB, free: 4.691 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches