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.0009763/0.0009763, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.0009479/0.0009479, allocations: 156.5 kB / 24.55 MB, free: 20 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 0.9664/0.9664, allocations: 177 MB / 204.8 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] 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 2.254e-06/2.254e-06, allocations: 0 / 272.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.608e-05/3.833e-05, allocations: 2.312 kB / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003393/0.003431, allocations: 2.189 MB / 275.1 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001396/0.004828, allocations: 0.732 MB / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001987/0.005026, allocations: 7.938 kB / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002219/0.005248, allocations: 47.45 kB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002425/0.005491, allocations: 47.59 kB / 275.9 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003886/0.005879, allocations: 103.7 kB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003708/0.00625, allocations: 239.7 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002361/0.006486, allocations: 79.98 kB / 276.3 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003204/0.006807, allocations: 131.6 kB / 276.5 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.006952, allocations: 91.69 kB / 276.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.419e-05/0.006986, allocations: 16 kB / 276.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.316e-05/0.007079, allocations: 28 kB / 276.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.343e-05/0.007153, allocations: 67.67 kB / 276.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.591e-05/0.007219, allocations: 67.83 kB / 276.7 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003004/0.007519, allocations: 187.2 kB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.007523, allocations: 0 / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.007524, allocations: 0 / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.333e-06/0.007531, allocations: 0 / 276.9 MB, free: 13.45 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.0007531/0.008285, allocations: 0.5778 MB / 277.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.363e-05/0.008338, allocations: 11.98 kB / 277.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001878/0.008526, allocations: 48.73 kB / 277.5 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/0.008797, allocations: 204.1 kB / 277.7 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.73e-05/0.008834, allocations: 24.86 kB / 277.8 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.492e-05/0.008879, allocations: 20.38 kB / 277.8 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003443/0.009223, allocations: 217.4 kB / 278 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.009237, allocations: 192 / 278 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.954e-05/0.009257, allocations: 8.375 kB / 278 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.256e-05/0.00931, allocations: 20.38 kB / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001699/0.009479, allocations: 90.92 kB / 278.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009435/0.01042, allocations: 0.8156 MB / 278.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002171/0.01064, allocations: 115 kB / 279 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.983e-05/0.01072, allocations: 55.66 kB / 279.1 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.246e-05/0.0108, allocations: 4 kB / 279.1 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.01083, allocations: 37.39 kB / 279.1 MB, free: 11.06 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 3.096e-06/0.01083, allocations: 0 / 279.1 MB, free: 11.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008826/0.01172, allocations: 477 kB / 279.6 MB, free: 10.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.01176, allocations: 63.34 kB / 279.7 MB, free: 10.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.01192, allocations: 238.8 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.01194, allocations: 25.7 kB / 279.9 MB, free: 10.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.01205, allocations: 207.1 kB / 280.1 MB, free: 9.988 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.257e-05/0.0121, allocations: 79.33 kB / 280.2 MB, free: 9.91 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.767e-05/0.01217, allocations: 59.31 kB / 280.3 MB, free: 9.844 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.01231, allocations: 0.5039 MB / 280.8 MB, free: 9.328 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.965e-05/0.01238, allocations: 39.97 kB / 280.8 MB, free: 9.289 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.019e-05/0.01247, allocations: 78.72 kB / 280.9 MB, free: 9.195 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001641/0.01263, allocations: 134.7 kB / 281 MB, free: 9.047 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.01264, allocations: 3.938 kB / 281 MB, free: 9.043 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002471/0.01288, allocations: 186.4 kB / 281.2 MB, free: 8.855 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.0129, allocations: 7.984 kB / 281.2 MB, free: 8.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.01291, allocations: 0 / 281.2 MB, free: 8.848 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/0.01293, allocations: 4 kB / 281.2 MB, free: 8.844 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001846/0.01312, allocations: 55.91 kB / 281.3 MB, free: 8.789 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.627e-06/0.01313, allocations: 0 / 281.3 MB, free: 8.789 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.524e-05/0.01319, allocations: 15.98 kB / 281.3 MB, free: 8.773 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.0132, allocations: 8.062 kB / 281.3 MB, free: 8.766 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.0001111/0.01332, allocations: 172.5 kB / 281.5 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.362e-05/0.01336, allocations: 35.8 kB / 281.5 MB, free: 8.551 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000313/0.01367, allocations: 206.9 kB / 281.7 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.01368, allocations: 4 kB / 281.7 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.01368, allocations: 0 / 281.7 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.01369, allocations: 0 / 281.7 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006085/0.0143, allocations: 0.552 MB / 282.3 MB, free: 7.742 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.0143, allocations: 4.031 kB / 282.3 MB, free: 7.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001622/0.01446, allocations: 51.91 kB / 282.3 MB, free: 7.688 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/0.01447, allocations: 4 kB / 282.3 MB, free: 7.684 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.01449, allocations: 4 kB / 282.3 MB, free: 7.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.01449, allocations: 4 kB / 282.3 MB, free: 7.676 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.01449, allocations: 3.984 kB / 282.3 MB, free: 7.672 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003837/0.01488, allocations: 405.2 kB / 282.7 MB, free: 7.25 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.935e-05/0.01493, allocations: 35.83 kB / 282.8 MB, free: 7.215 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.866e-05/0.01496, allocations: 11.94 kB / 282.8 MB, free: 7.203 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.801e-05/0.01503, allocations: 12 kB / 282.8 MB, free: 7.191 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.319e-05/0.01509, allocations: 15.95 kB / 282.8 MB, free: 7.176 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.01511, allocations: 12.12 kB / 282.8 MB, free: 7.164 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.877e-05/0.0152, allocations: 173.4 kB / 283 MB, free: 6.996 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0152, allocations: 0 / 283 MB, free: 6.996 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002355/0.01543, allocations: 47.94 kB / 283 MB, free: 6.949 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.0002044/0.01564, allocations: 107.1 kB / 283.1 MB, free: 6.836 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003722/0.01601, allocations: 143.5 kB / 283.3 MB, free: 6.691 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.01601, allocations: 128 / 283.3 MB, free: 6.691 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.19e-05/0.0161, allocations: 91.52 kB / 283.4 MB, free: 6.598 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002594/0.01636, allocations: 24.67 kB / 283.4 MB, free: 6.574 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.01742, allocations: 0.5684 MB / 284 MB, free: 5.977 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.599e-05/0.01748, allocations: 92.3 kB / 284 MB, free: 5.867 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.872e-05/0.01756, allocations: 41.89 kB / 284.1 MB, free: 5.824 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.731e-05/0.01762, allocations: 28.44 kB / 284.1 MB, free: 5.797 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01762, allocations: 0 / 284.1 MB, free: 5.797 MB / 266.7 MB Notification: Performance of Templates: time 0.004767/0.02239, allocations: 1.87 MB / 286 MB, free: 3.945 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.197697089985013]