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.001583/0.001583, allocations: 107.6 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.001984/0.001984, allocations: 205.1 kB / 24.48 MB, free: 3.695 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.52/1.52, allocations: 230.6 MB / 258.2 MB, free: 7.816 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.001675/0.001675, allocations: 43.92 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3461, allocations: 53.37 MB / 432.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003715/0.3498, allocations: 2.116 MB / 434.4 MB, free: 4.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.3512, allocations: 0.7011 MB / 435.1 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001278/0.3513, allocations: 7.938 kB / 435.2 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001961/0.3515, allocations: 47.47 kB / 435.2 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002/0.3517, allocations: 47.64 kB / 435.3 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003349/0.3521, allocations: 103.8 kB / 435.4 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003005/0.3524, allocations: 235.7 kB / 435.6 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001985/0.3526, allocations: 79.81 kB / 435.7 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002146/0.3528, allocations: 103.6 kB / 435.8 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001656/0.3529, allocations: 111.5 kB / 435.9 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.699e-05/0.353, allocations: 20 kB / 435.9 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.52e-05/0.3531, allocations: 36 kB / 435.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.75e-05/0.3532, allocations: 59.7 kB / 436 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.3533, allocations: 87.52 kB / 436.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003333/0.3536, allocations: 249.7 kB / 436.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.3536, allocations: 0 / 436.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3536, allocations: 3.938 kB / 436.3 MB, free: 2.723 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.3536, allocations: 0 / 436.3 MB, free: 2.723 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.000912/0.3545, allocations: 493.4 kB / 436.8 MB, free: 2.211 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.3546, allocations: 12.03 kB / 436.8 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001319/0.3547, allocations: 24.8 kB / 436.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003076/0.355, allocations: 203.2 kB / 437 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.952e-05/0.355, allocations: 20.75 kB / 437.1 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.382e-05/0.3551, allocations: 20.36 kB / 437.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004766/0.3555, allocations: 259 kB / 437.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.3556, allocations: 0 / 437.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.43e-05/0.3556, allocations: 8 kB / 437.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.876e-05/0.3556, allocations: 16.42 kB / 437.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004526/0.3561, allocations: 197.5 kB / 437.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001111/0.3572, allocations: 0.6935 MB / 438.2 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004404/0.3576, allocations: 177.4 kB / 438.4 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002108/0.3578, allocations: 96.81 kB / 438.5 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.437e-05/0.3579, allocations: 11.98 kB / 438.5 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.3579, allocations: 34.94 kB / 438.5 MB, free: 376 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.313e-06/0.3579, allocations: 0 / 438.5 MB, free: 376 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001665/0.3596, allocations: 0.6584 MB / 439.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/0.3597, allocations: 59.39 kB / 439.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002543/0.3599, allocations: 183.8 kB / 439.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/0.3599, allocations: 33.7 kB / 439.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.36, allocations: 144.5 kB / 439.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.906e-05/0.3601, allocations: 91.22 kB / 439.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.879e-05/0.3602, allocations: 53.69 kB / 439.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.3604, allocations: 326.8 kB / 440.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.3606, allocations: 87.88 kB / 440.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/0.3608, allocations: 124.1 kB / 440.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004306/0.3612, allocations: 217.7 kB / 440.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.3612, allocations: 0 / 440.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005382/0.3618, allocations: 274.3 kB / 440.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.3618, allocations: 4 kB / 440.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.3618, allocations: 4.062 kB / 440.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.3618, allocations: 7.984 kB / 440.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002843/0.3621, allocations: 55.91 kB / 440.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.3621, allocations: 3.984 kB / 440.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001233/0.3622, allocations: 15.98 kB / 440.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.3623, allocations: 15.94 kB / 440.9 MB, free: 13.93 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.0001619/0.3624, allocations: 145.7 kB / 441 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.053e-05/0.3625, allocations: 23.86 kB / 441 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006314/0.3631, allocations: 299 kB / 441.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.3631, allocations: 7.938 kB / 441.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3631, allocations: 0 / 441.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.3631, allocations: 0 / 441.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.3642, allocations: 0.5889 MB / 441.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3642, allocations: 0 / 441.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002816/0.3645, allocations: 56 kB / 442 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.3645, allocations: 4 kB / 442 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.864e-05/0.3645, allocations: 4 kB / 442 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.414e-06/0.3645, allocations: 12 kB / 442 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3645, allocations: 0 / 442 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008217/0.3653, allocations: 486.3 kB / 442.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.704e-05/0.3654, allocations: 35.88 kB / 442.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.27e-05/0.3655, allocations: 8 kB / 442.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.3656, allocations: 19.98 kB / 442.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.726e-05/0.3657, allocations: 15.91 kB / 442.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/0.3657, allocations: 15.98 kB / 442.6 MB, free: 12.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001139/0.3658, allocations: 133.5 kB / 442.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3658, allocations: 4 kB / 442.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003184/0.3661, allocations: 51.92 kB / 442.8 MB, free: 11.96 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.0001681/0.3663, allocations: 103.2 kB / 442.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000518/0.3668, allocations: 216.4 kB / 443.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3668, allocations: 0 / 443.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002303/0.367, allocations: 111.9 kB / 443.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.3674, allocations: 27.77 kB / 443.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.3686, allocations: 0.7224 MB / 443.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001627/0.3688, allocations: 154.8 kB / 444.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.954e-05/0.3688, allocations: 31.42 kB / 444.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3688, allocations: 0 / 444.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of Templates: time 0.00543/0.3743, allocations: 2.886 MB / 447 MB, free: 7.664 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.834172650997061]