Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.482/1.482, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder") translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.462e-06/1.462e-06, allocations: 0 / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.109e-05/3.255e-05, allocations: 2.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004453/0.004486, allocations: 2.12 MB / 274.4 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00196/0.006446, allocations: 0.7049 MB / 275.1 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001485/0.006595, allocations: 7.938 kB / 275.1 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002241/0.006819, allocations: 51.45 kB / 275.2 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002216/0.00704, allocations: 47.59 kB / 275.2 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003378/0.007378, allocations: 103.6 kB / 275.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003539/0.007732, allocations: 235.7 kB / 275.6 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002259/0.007958, allocations: 83.98 kB / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002974/0.008255, allocations: 139.6 kB / 275.8 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001739/0.008429, allocations: 79.7 kB / 275.9 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.452e-05/0.008474, allocations: 20 kB / 275.9 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.973e-05/0.008573, allocations: 39.92 kB / 275.9 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.128e-05/0.008665, allocations: 59.75 kB / 276 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.539e-05/0.00876, allocations: 63.83 kB / 276.1 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003794/0.009139, allocations: 251.1 kB / 276.3 MB, free: 13.82 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.009145, allocations: 7.922 kB / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.009146, allocations: 0 / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.009153, allocations: 0 / 276.3 MB, free: 13.81 MB / 266.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.0009926/0.01015, allocations: 477.5 kB / 276.8 MB, free: 13.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.0102, allocations: 16.03 kB / 276.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000214/0.01041, allocations: 52.73 kB / 276.8 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.01074, allocations: 193.3 kB / 277 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.353e-05/0.01077, allocations: 16.88 kB / 277 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.247e-05/0.01083, allocations: 24.38 kB / 277.1 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005292/0.01136, allocations: 260.1 kB / 277.3 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.01137, allocations: 192 / 277.3 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.367e-05/0.01139, allocations: 4.375 kB / 277.3 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.181e-05/0.01143, allocations: 16.44 kB / 277.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004957/0.01192, allocations: 197.8 kB / 277.5 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.01315, allocations: 0.6978 MB / 278.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000414/0.01357, allocations: 177.2 kB / 278.4 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002373/0.01381, allocations: 104.7 kB / 278.5 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.953e-05/0.01388, allocations: 8 kB / 278.5 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/0.01392, allocations: 30.56 kB / 278.5 MB, free: 11.44 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.103e-06/0.01392, allocations: 0 / 278.5 MB, free: 11.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.001661/0.01558, allocations: 0.6605 MB / 279.2 MB, free: 10.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.01563, allocations: 59.41 kB / 279.3 MB, free: 10.68 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002223/0.01585, allocations: 187.9 kB / 279.4 MB, free: 10.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.227e-05/0.01588, allocations: 33.69 kB / 279.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.01601, allocations: 152.4 kB / 279.6 MB, free: 10.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.773e-05/0.0161, allocations: 83.28 kB / 279.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.693e-05/0.01619, allocations: 53.69 kB / 279.8 MB, free: 10.15 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001992/0.01639, allocations: 330.8 kB / 280.1 MB, free: 9.816 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.01662, allocations: 83.95 kB / 280.2 MB, free: 9.734 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.01686, allocations: 119.4 kB / 280.3 MB, free: 9.605 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004587/0.01732, allocations: 219.3 kB / 280.5 MB, free: 9.379 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.01733, allocations: 3.938 kB / 280.5 MB, free: 9.375 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006125/0.01794, allocations: 292.2 kB / 280.8 MB, free: 9.086 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.01796, allocations: 8 kB / 280.8 MB, free: 9.078 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.892e-06/0.01797, allocations: 0 / 280.8 MB, free: 9.078 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.01799, allocations: 4.062 kB / 280.8 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002973/0.01829, allocations: 63.89 kB / 280.9 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.0183, allocations: 4 kB / 280.9 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.01843, allocations: 15.98 kB / 280.9 MB, free: 8.992 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.11e-05/0.01845, allocations: 8 kB / 280.9 MB, free: 8.984 MB / 266.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.0001632/0.01862, allocations: 141.8 kB / 281 MB, free: 8.836 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.854e-05/0.01868, allocations: 35.78 kB / 281.1 MB, free: 8.801 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006813/0.01936, allocations: 294.9 kB / 281.4 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.01937, allocations: 0 / 281.4 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.01937, allocations: 0 / 281.4 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.01938, allocations: 3.984 kB / 281.4 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001273/0.02065, allocations: 0.5893 MB / 281.9 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.02066, allocations: 4 kB / 281.9 MB, free: 7.871 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002944/0.02095, allocations: 55.91 kB / 282 MB, free: 7.816 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.02095, allocations: 4.031 kB / 282 MB, free: 7.812 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.432e-05/0.02098, allocations: 11.98 kB / 282 MB, free: 7.801 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-06/0.02098, allocations: 4 kB / 282 MB, free: 7.797 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.02098, allocations: 0 / 282 MB, free: 7.797 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009783/0.02196, allocations: 498.3 kB / 282.5 MB, free: 7.285 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.521e-05/0.02205, allocations: 35.91 kB / 282.5 MB, free: 7.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.754e-05/0.02209, allocations: 8.172 kB / 282.6 MB, free: 7.242 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000165/0.02225, allocations: 16 kB / 282.6 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.011e-05/0.02233, allocations: 19.95 kB / 282.6 MB, free: 7.207 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.017e-05/0.02235, allocations: 12 kB / 282.6 MB, free: 7.195 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001504/0.0225, allocations: 141.5 kB / 282.7 MB, free: 7.059 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0225, allocations: 0 / 282.7 MB, free: 7.059 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003158/0.02282, allocations: 40 kB / 282.8 MB, free: 7.02 MB / 266.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.0002188/0.02304, allocations: 107.1 kB / 282.9 MB, free: 6.906 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005747/0.02361, allocations: 219.9 kB / 283.1 MB, free: 6.691 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.02361, allocations: 0 / 283.1 MB, free: 6.691 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002526/0.02387, allocations: 115.8 kB / 283.2 MB, free: 6.578 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000361/0.02423, allocations: 27.98 kB / 283.2 MB, free: 6.551 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.02545, allocations: 0.6029 MB / 283.8 MB, free: 5.922 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001863/0.02564, allocations: 154.8 kB / 284 MB, free: 5.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000129/0.02577, allocations: 49.89 kB / 284 MB, free: 5.703 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.337e-05/0.02584, allocations: 24.5 kB / 284.1 MB, free: 5.68 MB / 266.7 MB Notification: Performance of SimCode: time 5.51e-07/0.02584, allocations: 0 / 284.1 MB, free: 5.68 MB / 266.7 MB Notification: Performance of Templates: time 0.006066/0.03191, allocations: 1.856 MB / 285.9 MB, free: 3.832 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.762885503936559]