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.001323/0.001323, allocations: 112.4 kB / 21.17 MB, free: 0.6172 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.001478/0.001478, allocations: 204.1 kB / 24.46 MB, free: 4.023 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.489/1.489, 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.002274/0.002274, allocations: 75.81 kB / 378.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2604, allocations: 53.3 MB / 432 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003961/0.2643, allocations: 2.255 MB / 434.3 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001409/0.2657, allocations: 0.7517 MB / 435 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.2659, allocations: 3.938 kB / 435 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001954/0.2661, allocations: 47.52 kB / 435.1 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000207/0.2663, allocations: 47.59 kB / 435.1 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003201/0.2666, allocations: 107.7 kB / 435.2 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003509/0.2669, allocations: 239.7 kB / 435.5 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002212/0.2672, allocations: 75.61 kB / 435.6 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002306/0.2674, allocations: 99.56 kB / 435.7 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.2676, allocations: 111.5 kB / 435.8 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.558e-05/0.2676, allocations: 16 kB / 435.8 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.2677, allocations: 40 kB / 435.8 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.342e-05/0.2678, allocations: 51.83 kB / 435.9 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.2679, allocations: 115.3 kB / 436 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003651/0.2683, allocations: 244.8 kB / 436.2 MB, free: 3.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2683, allocations: 3.938 kB / 436.2 MB, free: 3.176 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2683, allocations: 0 / 436.2 MB, free: 3.176 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.2683, allocations: 0 / 436.2 MB, free: 3.176 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.001087/0.2694, allocations: 0.5571 MB / 436.8 MB, free: 2.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.2694, allocations: 8.031 kB / 436.8 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.2696, allocations: 36.69 kB / 436.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/0.27, allocations: 264.2 kB / 437.1 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.477e-05/0.27, allocations: 16.81 kB / 437.1 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.139e-05/0.2701, allocations: 20.38 kB / 437.1 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005198/0.2706, allocations: 266.9 kB / 437.4 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.2706, allocations: 0 / 437.4 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.392e-05/0.2706, allocations: 4 kB / 437.4 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.95e-05/0.2707, allocations: 12.44 kB / 437.4 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005133/0.2712, allocations: 189.6 kB / 437.6 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001264/0.2724, allocations: 0.8226 MB / 438.4 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000395/0.2728, allocations: 170.5 kB / 438.6 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000229/0.2731, allocations: 96.8 kB / 438.7 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001125/0.2732, allocations: 93.09 kB / 438.8 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.2732, allocations: 38.81 kB / 438.8 MB, free: 420 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.613e-06/0.2732, allocations: 0 / 438.8 MB, free: 420 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001607/0.2748, allocations: 0.7266 MB / 439.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.2749, allocations: 59.39 kB / 439.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002279/0.2751, allocations: 220.9 kB / 439.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.2751, allocations: 29.7 kB / 439.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.2752, allocations: 144.6 kB / 440 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.966e-05/0.2753, allocations: 95.2 kB / 440.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.5e-05/0.2754, allocations: 45.7 kB / 440.1 MB, free: 15.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.2756, allocations: 338.8 kB / 440.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002215/0.2758, allocations: 83.94 kB / 440.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002668/0.2761, allocations: 119.9 kB / 440.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000503/0.2766, allocations: 223.2 kB / 440.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2766, allocations: 0 / 440.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006068/0.2772, allocations: 284 kB / 441.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.2772, allocations: 6.656 kB / 441.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.2772, allocations: 0 / 441.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.218e-05/0.2772, allocations: 4 kB / 441.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003323/0.2776, allocations: 60.02 kB / 441.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.2776, allocations: 3.938 kB / 441.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.2777, allocations: 19.97 kB / 441.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.2777, allocations: 12 kB / 441.2 MB, free: 13.85 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.0001628/0.2779, allocations: 141.8 kB / 441.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.099e-05/0.2779, allocations: 27.84 kB / 441.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006695/0.2786, allocations: 299.1 kB / 441.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.2786, allocations: 4 kB / 441.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.2786, allocations: 0 / 441.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.2786, allocations: 0 / 441.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001189/0.2798, allocations: 0.6791 MB / 442.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2798, allocations: 3.938 kB / 442.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002961/0.2801, allocations: 63.94 kB / 442.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.2801, allocations: 0 / 442.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.2802, allocations: 8 kB / 442.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.143e-06/0.2802, allocations: 7.922 kB / 442.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2802, allocations: 0 / 442.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008875/0.281, allocations: 490.8 kB / 442.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001565/0.2812, allocations: 120.9 kB / 443 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.014e-05/0.2812, allocations: 7.984 kB / 443.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001551/0.2814, allocations: 15.88 kB / 443.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.651e-05/0.2815, allocations: 19.97 kB / 443.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/0.2815, allocations: 8 kB / 443.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001694/0.2817, allocations: 160.5 kB / 443.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2817, allocations: 0 / 443.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003063/0.282, allocations: 48 kB / 443.3 MB, free: 11.66 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.0002236/0.2822, allocations: 107.2 kB / 443.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005542/0.2827, allocations: 208.2 kB / 443.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2827, allocations: 0 / 443.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002544/0.283, allocations: 115.8 kB / 443.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.2833, allocations: 32.73 kB / 443.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.2846, allocations: 0.6922 MB / 444.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004302/0.285, allocations: 0.76 MB / 445.2 MB, free: 9.684 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001443/0.2851, allocations: 49.89 kB / 445.3 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.672e-05/0.2852, allocations: 27.44 kB / 445.3 MB, free: 9.609 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2852, allocations: 0 / 445.3 MB, free: 9.609 MB / 350.1 MB Notification: Performance of Templates: time 0.006093/0.2913, allocations: 2.114 MB / 447.4 MB, free: 7.496 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 -s cvode -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: 4.754289715085179]