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.001788/0.001788, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001955/0.001955, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.583/1.583, allocations: 230.6 MB / 257.5 MB, free: 7.988 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.001583/0.001583, allocations: 43.92 kB / 378.3 MB, free: 2.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3194, allocations: 53.36 MB / 431.6 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004126/0.3235, allocations: 2.239 MB / 433.9 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.3252, allocations: 0.7594 MB / 434.6 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001716/0.3254, allocations: 11.88 kB / 434.6 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002336/0.3256, allocations: 47.52 kB / 434.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000229/0.3258, allocations: 47.59 kB / 434.7 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003849/0.3262, allocations: 107.7 kB / 434.8 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003575/0.3266, allocations: 231.7 kB / 435.1 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002386/0.3268, allocations: 83.83 kB / 435.1 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002545/0.3271, allocations: 95.56 kB / 435.2 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002064/0.3273, allocations: 119.4 kB / 435.3 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.775e-05/0.3273, allocations: 16 kB / 435.4 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.3274, allocations: 43.98 kB / 435.4 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.779e-05/0.3275, allocations: 51.83 kB / 435.5 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001262/0.3276, allocations: 107.3 kB / 435.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003971/0.328, allocations: 245.3 kB / 435.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.886e-06/0.328, allocations: 3.984 kB / 435.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.328, allocations: 0 / 435.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.328, allocations: 0 / 435.8 MB, free: 2.758 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.001052/0.3291, allocations: 493.3 kB / 436.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.3291, allocations: 12.03 kB / 436.3 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001809/0.3293, allocations: 32.73 kB / 436.3 MB, free: 2.203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003554/0.3297, allocations: 195.3 kB / 436.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.695e-05/0.3297, allocations: 16.81 kB / 436.5 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.358e-05/0.3298, allocations: 24.38 kB / 436.6 MB, free: 1.949 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005375/0.3303, allocations: 263 kB / 436.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.3303, allocations: 0 / 436.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.429e-05/0.3304, allocations: 8 kB / 436.8 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.288e-05/0.3304, allocations: 12.44 kB / 436.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004859/0.3309, allocations: 193.5 kB / 437 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001396/0.3323, allocations: 0.7904 MB / 437.8 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003909/0.3327, allocations: 174.4 kB / 438 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002239/0.3329, allocations: 104.8 kB / 438.1 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.438e-05/0.333, allocations: 7.984 kB / 438.1 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.408e-05/0.333, allocations: 38.88 kB / 438.1 MB, free: 296 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.403e-06/0.333, allocations: 0 / 438.1 MB, free: 296 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001613/0.3346, allocations: 0.6524 MB / 438.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.36e-05/0.3347, allocations: 59.34 kB / 438.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002581/0.3349, allocations: 213 kB / 439.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.335, allocations: 29.7 kB / 439.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.3351, allocations: 152.4 kB / 439.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.341e-05/0.3352, allocations: 91.19 kB / 439.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.289e-05/0.3353, allocations: 45.7 kB / 439.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001962/0.3355, allocations: 338.8 kB / 439.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/0.3357, allocations: 87.88 kB / 439.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002624/0.3359, allocations: 120.1 kB / 439.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004559/0.3364, allocations: 227.2 kB / 440.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.3364, allocations: 0 / 440.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005576/0.337, allocations: 269.3 kB / 440.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.337, allocations: 8 kB / 440.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.337, allocations: 0 / 440.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.337, allocations: 4 kB / 440.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002909/0.3373, allocations: 67.95 kB / 440.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.3373, allocations: 0 / 440.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.3374, allocations: 15.98 kB / 440.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.616e-05/0.3375, allocations: 11.98 kB / 440.5 MB, free: 13.82 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.0001626/0.3376, allocations: 141.7 kB / 440.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.111e-05/0.3377, allocations: 19.86 kB / 440.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006973/0.3384, allocations: 311.2 kB / 440.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.3384, allocations: 4 kB / 441 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.3384, allocations: 64 / 441 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.627e-06/0.3384, allocations: 4 kB / 441 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001203/0.3396, allocations: 0.6547 MB / 441.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3396, allocations: 0 / 441.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002899/0.3399, allocations: 63.92 kB / 441.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.3399, allocations: 0 / 441.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.3399, allocations: 8 kB / 441.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.628e-06/0.3399, allocations: 3.938 kB / 441.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3399, allocations: 0 / 441.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000903/0.3408, allocations: 490.3 kB / 442.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.394e-05/0.3409, allocations: 39.89 kB / 442.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.008e-05/0.341, allocations: 8 kB / 442.2 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.3411, allocations: 15.92 kB / 442.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.627e-05/0.3412, allocations: 15.97 kB / 442.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.3412, allocations: 8 kB / 442.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002165/0.3415, allocations: 156.5 kB / 442.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3415, allocations: 3.938 kB / 442.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003382/0.3418, allocations: 52 kB / 442.5 MB, free: 11.76 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.0002716/0.3421, allocations: 111.1 kB / 442.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005719/0.3426, allocations: 212.4 kB / 442.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3426, allocations: 0 / 442.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002504/0.3429, allocations: 115.8 kB / 442.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/0.3433, allocations: 28.56 kB / 442.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/0.3448, allocations: 0.6855 MB / 443.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006128/0.3454, allocations: 0.7678 MB / 444.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001329/0.3456, allocations: 49.89 kB / 444.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.141e-05/0.3456, allocations: 19.44 kB / 444.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3456, allocations: 0 / 444.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of Templates: time 0.007018/0.3526, allocations: 2.196 MB / 446.6 MB, free: 7.539 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/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_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: 5.053183601936325]