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.001316/0.001316, allocations: 116.1 kB / 21.18 MB, free: 0.5898 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.001439/0.001439, allocations: 209.9 kB / 24.47 MB, free: 3.996 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.485/1.485, allocations: 230.4 MB / 258.1 MB, free: 8.145 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.001925/0.001925, allocations: 75.81 kB / 378.7 MB, free: 2.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3812/0.3831, allocations: 53.3 MB / 432 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004458/0.3876, allocations: 2.249 MB / 434.3 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001593/0.3892, allocations: 0.7633 MB / 435 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.3893, allocations: 4 kB / 435.1 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002237/0.3895, allocations: 51.45 kB / 435.1 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002146/0.3898, allocations: 39.66 kB / 435.1 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003308/0.3901, allocations: 107.7 kB / 435.2 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003364/0.3904, allocations: 231.6 kB / 435.5 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00023/0.3907, allocations: 87.59 kB / 435.6 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002244/0.3909, allocations: 91.62 kB / 435.6 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.3911, allocations: 111.5 kB / 435.8 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.119e-05/0.3911, allocations: 20 kB / 435.8 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.993e-05/0.3912, allocations: 35.98 kB / 435.8 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.981e-05/0.3913, allocations: 59.77 kB / 435.9 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.3914, allocations: 107.3 kB / 436 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003719/0.3918, allocations: 252.8 kB / 436.2 MB, free: 3.137 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3918, allocations: 0 / 436.2 MB, free: 3.137 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3918, allocations: 4 kB / 436.2 MB, free: 3.133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.3918, allocations: 0 / 436.2 MB, free: 3.133 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.001001/0.3928, allocations: 0.5494 MB / 436.8 MB, free: 2.535 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.3929, allocations: 8.031 kB / 436.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.393, allocations: 36.73 kB / 436.8 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003442/0.3934, allocations: 260.2 kB / 437.1 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.3934, allocations: 12.81 kB / 437.1 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.716e-05/0.3934, allocations: 24.38 kB / 437.1 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005036/0.3939, allocations: 266.9 kB / 437.4 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.3939, allocations: 0 / 437.4 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.547e-05/0.394, allocations: 8 kB / 437.4 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.316e-05/0.394, allocations: 12.44 kB / 437.4 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004566/0.3945, allocations: 193.5 kB / 437.6 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.3957, allocations: 0.8226 MB / 438.4 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003704/0.3961, allocations: 174.4 kB / 438.6 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002147/0.3963, allocations: 96.8 kB / 438.7 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001174/0.3964, allocations: 81.11 kB / 438.7 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.818e-05/0.3965, allocations: 42.88 kB / 438.8 MB, free: 384 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.282e-06/0.3965, allocations: 0 / 438.8 MB, free: 384 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001588/0.3981, allocations: 0.7349 MB / 439.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.3981, allocations: 55.41 kB / 439.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002326/0.3984, allocations: 213 kB / 439.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.576e-05/0.3984, allocations: 29.7 kB / 439.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.3985, allocations: 152.5 kB / 440 MB, free: 15.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.695e-05/0.3986, allocations: 91.23 kB / 440.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.46e-05/0.3987, allocations: 49.69 kB / 440.1 MB, free: 14.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.3988, allocations: 338.8 kB / 440.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002075/0.3991, allocations: 75.95 kB / 440.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002367/0.3993, allocations: 127.8 kB / 440.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004338/0.3997, allocations: 211.9 kB / 440.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.3997, allocations: 4 kB / 440.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005577/0.4003, allocations: 283.5 kB / 441.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.4003, allocations: 8 kB / 441.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.4003, allocations: 4.125 kB / 441.1 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.4003, allocations: 4 kB / 441.1 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002855/0.4006, allocations: 59.89 kB / 441.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.4006, allocations: 4 kB / 441.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.4008, allocations: 19.92 kB / 441.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/0.4008, allocations: 12 kB / 441.2 MB, free: 13.8 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.0001421/0.4009, allocations: 141.7 kB / 441.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.417e-05/0.401, allocations: 19.86 kB / 441.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006349/0.4016, allocations: 299.2 kB / 441.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.4016, allocations: 4 kB / 441.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4016, allocations: 0 / 441.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.4016, allocations: 3.984 kB / 441.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.4028, allocations: 0.683 MB / 442.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.4028, allocations: 3.938 kB / 442.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002855/0.403, allocations: 59.95 kB / 442.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.403, allocations: 0 / 442.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/0.4031, allocations: 8 kB / 442.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.4031, allocations: 3.938 kB / 442.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.4031, allocations: 0 / 442.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00085/0.4039, allocations: 490.8 kB / 442.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.404, allocations: 120.9 kB / 443 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.37e-05/0.4041, allocations: 4 kB / 443 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/0.4042, allocations: 19.92 kB / 443.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.132e-05/0.4043, allocations: 19.97 kB / 443.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.4043, allocations: 4 kB / 443.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001492/0.4044, allocations: 156.5 kB / 443.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4044, allocations: 0 / 443.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002976/0.4047, allocations: 48 kB / 443.3 MB, free: 11.63 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.0001759/0.4049, allocations: 107.2 kB / 443.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005231/0.4054, allocations: 216 kB / 443.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.4054, allocations: 4.125 kB / 443.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002375/0.4057, allocations: 111.8 kB / 443.7 MB, free: 11.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003258/0.406, allocations: 27.34 kB / 443.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.4073, allocations: 0.736 MB / 444.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004422/0.4077, allocations: 0.7639 MB / 445.2 MB, free: 9.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.91e-05/0.4078, allocations: 27.44 kB / 445.3 MB, free: 9.578 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4078, allocations: 0 / 445.3 MB, free: 9.578 MB / 350.1 MB Notification: Performance of Templates: time 0.005544/0.4133, allocations: 2.879 MB / 448.1 MB, free: 6.695 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.854756721295416]