Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.004662/0.004662, allocations: 108.3 kB / 21.98 MB, free: 5.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00142/0.00142, allocations: 212.2 kB / 25.29 MB, free: 3.199 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.449/1.449, allocations: 230.6 MB / 259 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 59.89 kB / 379.8 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2799, allocations: 53.37 MB / 433.2 MB, free: 6.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004212/0.2841, allocations: 2.232 MB / 435.4 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.2856, allocations: 0.7633 MB / 436.2 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001632/0.2858, allocations: 11.88 kB / 436.2 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002464/0.2861, allocations: 47.52 kB / 436.2 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002893/0.2863, allocations: 43.59 kB / 436.3 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004383/0.2868, allocations: 115.7 kB / 436.4 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003409/0.2871, allocations: 231.7 kB / 436.6 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.2873, allocations: 80 kB / 436.7 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003025/0.2876, allocations: 103.6 kB / 436.8 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002324/0.2879, allocations: 107.5 kB / 436.9 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.477e-05/0.2879, allocations: 20 kB / 436.9 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.2881, allocations: 32 kB / 436.9 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.2882, allocations: 55.81 kB / 437 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001581/0.2884, allocations: 111.3 kB / 437.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004877/0.2888, allocations: 252.1 kB / 437.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2889, allocations: 0 / 437.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2889, allocations: 3.938 kB / 437.4 MB, free: 2.742 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.754e-06/0.2889, allocations: 0 / 437.4 MB, free: 2.742 MB / 334.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.001229/0.2901, allocations: 481.5 kB / 437.8 MB, free: 2.242 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.2901, allocations: 12.03 kB / 437.8 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.2903, allocations: 36.75 kB / 437.9 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004084/0.2907, allocations: 198.6 kB / 438.1 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.84e-05/0.2907, allocations: 16.81 kB / 438.1 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.676e-05/0.2908, allocations: 20.38 kB / 438.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007448/0.2915, allocations: 255 kB / 438.3 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/0.2916, allocations: 3.984 kB / 438.4 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.359e-05/0.2916, allocations: 12 kB / 438.4 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.652e-05/0.2916, allocations: 12.38 kB / 438.4 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006709/0.2923, allocations: 193.6 kB / 438.6 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001782/0.2941, allocations: 0.7982 MB / 439.4 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005467/0.2946, allocations: 172 kB / 439.5 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003313/0.295, allocations: 92.8 kB / 439.6 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000135/0.2951, allocations: 11.98 kB / 439.6 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.737e-05/0.2951, allocations: 46.81 kB / 439.7 MB, free: 284 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 2.896e-06/0.2951, allocations: 0 / 439.7 MB, free: 284 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.002387/0.2975, allocations: 0.6521 MB / 440.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.021e-05/0.2976, allocations: 59.41 kB / 440.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003473/0.298, allocations: 213 kB / 440.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.072e-05/0.298, allocations: 33.64 kB / 440.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/0.2982, allocations: 148.5 kB / 440.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.2983, allocations: 87.28 kB / 440.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002035/0.2985, allocations: 49.69 kB / 440.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002187/0.2987, allocations: 330.8 kB / 441.2 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003001/0.299, allocations: 87.94 kB / 441.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003597/0.2993, allocations: 124.1 kB / 441.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006716/0.3, allocations: 214.2 kB / 441.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3, allocations: 4 kB / 441.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008167/0.3008, allocations: 281.3 kB / 441.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.3009, allocations: 6.656 kB / 441.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.3009, allocations: 0 / 441.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.3009, allocations: 4 kB / 441.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004662/0.3014, allocations: 63.89 kB / 442 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.3014, allocations: 0 / 442 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002185/0.3016, allocations: 20.05 kB / 442 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.166e-05/0.3016, allocations: 8 kB / 442 MB, free: 13.81 MB / 350.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.0002318/0.3019, allocations: 145.7 kB / 442.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.302, allocations: 27.84 kB / 442.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/0.303, allocations: 299.2 kB / 442.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.3031, allocations: 4 kB / 442.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.3031, allocations: 4 kB / 442.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.3031, allocations: 3.984 kB / 442.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001737/0.3048, allocations: 0.6508 MB / 443.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.237e-06/0.3048, allocations: 0 / 443.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004342/0.3052, allocations: 59.97 kB / 443.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.3053, allocations: 0 / 443.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.388e-05/0.3053, allocations: 16.02 kB / 443.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.887e-06/0.3053, allocations: 3.938 kB / 443.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.3053, allocations: 4 kB / 443.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/0.3065, allocations: 478.4 kB / 443.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.3066, allocations: 43.86 kB / 443.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.292e-05/0.3067, allocations: 11.98 kB / 443.8 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.3069, allocations: 11.94 kB / 443.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.614e-05/0.307, allocations: 27.83 kB / 443.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.42e-05/0.307, allocations: 8 kB / 443.8 MB, free: 11.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002278/0.3073, allocations: 152.5 kB / 444 MB, free: 11.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3073, allocations: 3.938 kB / 444 MB, free: 11.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006914/0.3079, allocations: 51.98 kB / 444 MB, free: 11.75 MB / 350.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.0002435/0.3082, allocations: 107.2 kB / 444.1 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007955/0.309, allocations: 208.4 kB / 444.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.309, allocations: 4 kB / 444.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003705/0.3094, allocations: 115.8 kB / 444.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005295/0.3099, allocations: 24.42 kB / 444.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001781/0.3117, allocations: 0.7148 MB / 445.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005636/0.3122, allocations: 0.7678 MB / 445.9 MB, free: 9.746 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.3124, allocations: 27.42 kB / 446 MB, free: 9.719 MB / 350.1 MB Notification: Performance of SimCode: time 1.272e-06/0.3124, allocations: 0 / 446 MB, free: 9.719 MB / 350.1 MB Notification: Performance of Templates: time 0.008724/0.3211, allocations: 2.878 MB / 448.8 MB, free: 6.836 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.753625859040767]