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.001342/0.001342, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 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.00157/0.00157, allocations: 215.1 kB / 24.48 MB, free: 3.84 MB / 14.72 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.488/1.488, allocations: 230.6 MB / 258.2 MB, free: 7.812 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+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 0.001643/0.001643, allocations: 55.92 kB / 379 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2685, allocations: 53.37 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.0036/0.2721, allocations: 2.112 MB / 434.4 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00143/0.2736, allocations: 0.705 MB / 435.1 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.2737, allocations: 11.88 kB / 435.2 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001787/0.2739, allocations: 47.52 kB / 435.2 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.2741, allocations: 47.58 kB / 435.3 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003049/0.2744, allocations: 103.8 kB / 435.4 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003012/0.2747, allocations: 231.7 kB / 435.6 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.2749, allocations: 79.8 kB / 435.7 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002118/0.2751, allocations: 103.6 kB / 435.8 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/0.2752, allocations: 99.47 kB / 435.9 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.585e-05/0.2753, allocations: 19.94 kB / 435.9 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.961e-05/0.2754, allocations: 39.97 kB / 435.9 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.017e-05/0.2755, allocations: 59.78 kB / 436 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.082e-05/0.2756, allocations: 83.52 kB / 436.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003336/0.2759, allocations: 249.7 kB / 436.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2759, allocations: 0 / 436.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2759, allocations: 0 / 436.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.2759, allocations: 3.938 kB / 436.3 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.0008791/0.2768, allocations: 489.4 kB / 436.8 MB, free: 2.234 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.2768, allocations: 8.031 kB / 436.8 MB, free: 2.227 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.2769, allocations: 32.8 kB / 436.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003065/0.2773, allocations: 199.2 kB / 437 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.71e-05/0.2773, allocations: 16.81 kB / 437 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.017e-05/0.2773, allocations: 20.38 kB / 437.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004833/0.2778, allocations: 263 kB / 437.3 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.2778, allocations: 0 / 437.3 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.057e-05/0.2778, allocations: 4 kB / 437.3 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.583e-05/0.2779, allocations: 16.38 kB / 437.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00045/0.2783, allocations: 193.6 kB / 437.5 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.2795, allocations: 0.6974 MB / 438.2 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003691/0.2798, allocations: 170.5 kB / 438.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002424/0.2801, allocations: 112.8 kB / 438.5 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.002e-05/0.2801, allocations: 4 kB / 438.5 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.2802, allocations: 38.94 kB / 438.5 MB, free: 396 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.362e-06/0.2802, allocations: 0 / 438.5 MB, free: 396 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001462/0.2816, allocations: 0.6608 MB / 439.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.2817, allocations: 55.34 kB / 439.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001799/0.2819, allocations: 191.8 kB / 439.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.983e-05/0.2819, allocations: 29.7 kB / 439.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.282, allocations: 156.4 kB / 439.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.544e-05/0.2821, allocations: 87.22 kB / 439.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.78e-05/0.2821, allocations: 49.7 kB / 439.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.2823, allocations: 330.8 kB / 440.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002048/0.2825, allocations: 79.95 kB / 440.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.2827, allocations: 124.1 kB / 440.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004327/0.2832, allocations: 219.2 kB / 440.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.2832, allocations: 0 / 440.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005474/0.2837, allocations: 274.3 kB / 440.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.2837, allocations: 4 kB / 440.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.2837, allocations: 8 kB / 440.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.264e-05/0.2838, allocations: 0 / 440.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002906/0.2841, allocations: 63.95 kB / 440.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.2841, allocations: 7.938 kB / 440.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.2842, allocations: 15.98 kB / 440.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.157e-05/0.2842, allocations: 11.98 kB / 440.9 MB, free: 13.94 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.0001726/0.2844, allocations: 141.7 kB / 441 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.063e-05/0.2844, allocations: 23.86 kB / 441 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006522/0.2851, allocations: 290.9 kB / 441.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.2851, allocations: 8 kB / 441.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.2851, allocations: 0 / 441.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.2851, allocations: 3.984 kB / 441.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.2862, allocations: 0.589 MB / 441.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2862, allocations: 0 / 441.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002782/0.2864, allocations: 63.89 kB / 442 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.2864, allocations: 0 / 442 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.2865, allocations: 12.03 kB / 442 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.2865, allocations: 0 / 442 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.2865, allocations: 0 / 442 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008569/0.2873, allocations: 482.4 kB / 442.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.105e-05/0.2874, allocations: 39.83 kB / 442.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.151e-05/0.2874, allocations: 4 kB / 442.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001613/0.2876, allocations: 15.98 kB / 442.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.899e-05/0.2877, allocations: 23.84 kB / 442.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.2877, allocations: 15.94 kB / 442.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001262/0.2878, allocations: 141.5 kB / 442.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2878, allocations: 0 / 442.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003033/0.2881, allocations: 47.94 kB / 442.7 MB, free: 11.98 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.0001722/0.2883, allocations: 103.2 kB / 442.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005362/0.2888, allocations: 210.9 kB / 443 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.2888, allocations: 4.125 kB / 443 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002348/0.2891, allocations: 119.8 kB / 443.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.2894, allocations: 23.78 kB / 443.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.2906, allocations: 0.7263 MB / 443.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001573/0.2907, allocations: 154.8 kB / 444.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.145e-05/0.2908, allocations: 23.44 kB / 444.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2908, allocations: 0 / 444.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of Templates: time 0.005168/0.296, allocations: 2.884 MB / 447 MB, free: 7.688 MB / 350.1 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/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_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.407341935206205]