Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001332/0.001332, allocations: 92.27 kB / 20.96 MB, free: 3.445 MB / 18.57 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.001343/0.001343, allocations: 160.9 kB / 24.26 MB, free: 148 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.58/1.58, allocations: 177 MB / 204.4 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.733e-05/2.897e-05, allocations: 6.312 kB / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004356/0.004385, allocations: 2.117 MB / 274.3 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001906/0.006291, allocations: 0.7048 MB / 275 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.006441, allocations: 11.88 kB / 275 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002215/0.006662, allocations: 47.52 kB / 275.1 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002337/0.006896, allocations: 47.53 kB / 275.1 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003804/0.007276, allocations: 107.7 kB / 275.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003838/0.00766, allocations: 235.7 kB / 275.4 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002514/0.007911, allocations: 83.98 kB / 275.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003142/0.008226, allocations: 135.6 kB / 275.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001861/0.008412, allocations: 79.7 kB / 275.7 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.942e-05/0.008461, allocations: 20 kB / 275.8 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.928e-05/0.00856, allocations: 31.94 kB / 275.8 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.00868, allocations: 67.73 kB / 275.9 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001196/0.0088, allocations: 59.83 kB / 275.9 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004725/0.009272, allocations: 259 kB / 276.2 MB, free: 13.81 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.00928, allocations: 3.984 kB / 276.2 MB, free: 13.81 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.009282, allocations: 0 / 276.2 MB, free: 13.81 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.009289, allocations: 0 / 276.2 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.001125/0.01041, allocations: 481.5 kB / 276.6 MB, free: 13.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.01047, allocations: 15.98 kB / 276.7 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002012/0.01067, allocations: 52.73 kB / 276.7 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003563/0.01102, allocations: 201 kB / 276.9 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.731e-05/0.01105, allocations: 12.88 kB / 276.9 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.819e-05/0.01111, allocations: 28.31 kB / 276.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005997/0.01171, allocations: 256.2 kB / 277.2 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.01172, allocations: 192 / 277.2 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.873e-05/0.01175, allocations: 8.375 kB / 277.2 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.526e-05/0.01179, allocations: 16.44 kB / 277.2 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004951/0.01228, allocations: 197.8 kB / 277.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001291/0.01357, allocations: 0.7017 MB / 278.1 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004371/0.01401, allocations: 174.4 kB / 278.3 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002338/0.01424, allocations: 100.8 kB / 278.4 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.999e-05/0.01432, allocations: 8 kB / 278.4 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.256e-05/0.01437, allocations: 42.55 kB / 278.4 MB, free: 11.42 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.252e-06/0.01437, allocations: 0 / 278.4 MB, free: 11.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.001638/0.01601, allocations: 0.6588 MB / 279.1 MB, free: 10.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.01605, allocations: 55.41 kB / 279.1 MB, free: 10.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002078/0.01626, allocations: 183.9 kB / 279.3 MB, free: 10.47 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.359e-05/0.01629, allocations: 37.69 kB / 279.4 MB, free: 10.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.01642, allocations: 156.4 kB / 279.5 MB, free: 10.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.068e-05/0.0165, allocations: 87.27 kB / 279.6 MB, free: 10.19 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.0166, allocations: 49.7 kB / 279.7 MB, free: 10.13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.01679, allocations: 330.8 kB / 280 MB, free: 9.801 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/0.017, allocations: 83.95 kB / 280.1 MB, free: 9.719 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002417/0.01725, allocations: 119.3 kB / 280.2 MB, free: 9.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004703/0.01772, allocations: 215.3 kB / 280.4 MB, free: 9.367 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-06/0.01772, allocations: 7.875 kB / 280.4 MB, free: 9.359 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005904/0.01831, allocations: 286.2 kB / 280.7 MB, free: 9.074 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.01833, allocations: 8 kB / 280.7 MB, free: 9.066 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.01834, allocations: 0 / 280.7 MB, free: 9.066 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.01836, allocations: 0 / 280.7 MB, free: 9.066 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003087/0.01867, allocations: 59.89 kB / 280.7 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.01868, allocations: 8.062 kB / 280.7 MB, free: 9 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.0188, allocations: 15.98 kB / 280.8 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/0.01882, allocations: 8 kB / 280.8 MB, free: 8.977 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.0001572/0.01898, allocations: 141.8 kB / 280.9 MB, free: 8.828 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.532e-05/0.01905, allocations: 31.8 kB / 280.9 MB, free: 8.797 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006655/0.01971, allocations: 290.9 kB / 281.2 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.01972, allocations: 0 / 281.2 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.289e-06/0.01972, allocations: 4 kB / 281.2 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.01973, allocations: 3.984 kB / 281.2 MB, free: 8.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.02088, allocations: 0.5929 MB / 281.8 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.02089, allocations: 4 kB / 281.8 MB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002832/0.02117, allocations: 47.97 kB / 281.9 MB, free: 7.816 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.02117, allocations: 64 / 281.9 MB, free: 7.816 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.0212, allocations: 15.98 kB / 281.9 MB, free: 7.801 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.886e-06/0.02121, allocations: 11.97 kB / 281.9 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.02121, allocations: 0 / 281.9 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.02233, allocations: 498.6 kB / 282.4 MB, free: 7.277 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.593e-05/0.02242, allocations: 31.91 kB / 282.4 MB, free: 7.246 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.539e-05/0.02245, allocations: 7.984 kB / 282.4 MB, free: 7.238 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.0226, allocations: 12 kB / 282.4 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.662e-05/0.02268, allocations: 19.95 kB / 282.5 MB, free: 7.207 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.02269, allocations: 8 kB / 282.5 MB, free: 7.199 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001457/0.02284, allocations: 145.5 kB / 282.6 MB, free: 7.059 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02284, allocations: 0 / 282.6 MB, free: 7.059 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003128/0.02315, allocations: 44 kB / 282.7 MB, free: 7.016 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.0002172/0.02337, allocations: 111.1 kB / 282.8 MB, free: 6.898 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005268/0.0239, allocations: 215.7 kB / 283 MB, free: 6.688 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.0239, allocations: 3.938 kB / 283 MB, free: 6.684 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002526/0.02415, allocations: 112 kB / 283.1 MB, free: 6.574 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/0.02451, allocations: 23.98 kB / 283.1 MB, free: 6.551 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00124/0.02575, allocations: 0.6109 MB / 283.7 MB, free: 5.914 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001933/0.02594, allocations: 154.8 kB / 283.9 MB, free: 5.742 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001336/0.02608, allocations: 45.91 kB / 283.9 MB, free: 5.699 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.769e-05/0.02615, allocations: 28.5 kB / 283.9 MB, free: 5.672 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.02616, allocations: 0 / 283.9 MB, free: 5.672 MB / 266.7 MB Notification: Performance of Templates: time 0.006285/0.03244, allocations: 1.865 MB / 285.8 MB, free: 3.824 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.791888347011991]