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.001658/0.001658, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002223/0.002223, allocations: 212.7 kB / 24.48 MB, free: 3.977 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 2.239/2.239, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.001812/0.001812, allocations: 55.91 kB / 379 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3462, allocations: 53.38 MB / 432.3 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004167/0.3503, allocations: 2.117 MB / 434.4 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001682/0.352, allocations: 0.7088 MB / 435.2 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001574/0.3522, allocations: 7.938 kB / 435.2 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002187/0.3524, allocations: 47.47 kB / 435.2 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002266/0.3526, allocations: 39.64 kB / 435.3 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003701/0.353, allocations: 103.8 kB / 435.4 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00036/0.3533, allocations: 235.7 kB / 435.6 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002432/0.3536, allocations: 83.8 kB / 435.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002334/0.3538, allocations: 103.6 kB / 435.8 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001891/0.354, allocations: 111.5 kB / 435.9 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.045e-05/0.354, allocations: 16 kB / 435.9 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.3542, allocations: 36 kB / 435.9 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.228e-05/0.3543, allocations: 63.7 kB / 436 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.3544, allocations: 83.52 kB / 436.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004056/0.3548, allocations: 253.9 kB / 436.3 MB, free: 2.887 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3548, allocations: 4 kB / 436.3 MB, free: 2.883 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3548, allocations: 3.938 kB / 436.3 MB, free: 2.879 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.3548, allocations: 4 kB / 436.3 MB, free: 2.875 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.001166/0.356, allocations: 485.4 kB / 436.8 MB, free: 2.371 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.356, allocations: 8.031 kB / 436.8 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001756/0.3562, allocations: 28.8 kB / 436.8 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004079/0.3566, allocations: 195.3 kB / 437 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.22e-05/0.3566, allocations: 16.81 kB / 437 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.056e-05/0.3567, allocations: 24.38 kB / 437.1 MB, free: 2.082 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006227/0.3573, allocations: 262.9 kB / 437.3 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.3573, allocations: 0 / 437.3 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.3573, allocations: 8 kB / 437.3 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.521e-05/0.3574, allocations: 16.42 kB / 437.3 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005711/0.358, allocations: 193.5 kB / 437.5 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001396/0.3593, allocations: 0.6975 MB / 438.2 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004654/0.3598, allocations: 170.5 kB / 438.4 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002698/0.3601, allocations: 96.75 kB / 438.5 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.077e-05/0.3602, allocations: 11.98 kB / 438.5 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.402e-05/0.3602, allocations: 34.94 kB / 438.5 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.663e-06/0.3602, allocations: 4 kB / 438.5 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001849/0.3621, allocations: 0.6536 MB / 439.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.088e-05/0.3621, allocations: 55.41 kB / 439.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002315/0.3623, allocations: 191.8 kB / 439.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.3624, allocations: 29.64 kB / 439.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.3625, allocations: 148.5 kB / 439.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.756e-05/0.3626, allocations: 87.28 kB / 439.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.3627, allocations: 53.69 kB / 439.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.3628, allocations: 330.8 kB / 440.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002676/0.3631, allocations: 83.94 kB / 440.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002902/0.3634, allocations: 120.1 kB / 440.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005567/0.364, allocations: 224.7 kB / 440.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.364, allocations: 0 / 440.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000696/0.3647, allocations: 273.3 kB / 440.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.3647, allocations: 8 kB / 440.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.3647, allocations: 3.984 kB / 440.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.3647, allocations: 0 / 440.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003752/0.3651, allocations: 63.89 kB / 440.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.3651, allocations: 4 kB / 440.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001666/0.3653, allocations: 20.05 kB / 440.9 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.142e-05/0.3653, allocations: 7.938 kB / 440.9 MB, free: 14.09 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.0001838/0.3655, allocations: 153.6 kB / 441 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.148e-05/0.3655, allocations: 19.86 kB / 441 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007735/0.3663, allocations: 295 kB / 441.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.3663, allocations: 4 kB / 441.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3663, allocations: 0 / 441.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.81e-06/0.3663, allocations: 4 kB / 441.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001329/0.3677, allocations: 0.5929 MB / 441.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.3677, allocations: 0 / 441.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003672/0.368, allocations: 55.91 kB / 442 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.368, allocations: 0 / 442 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/0.3681, allocations: 8 kB / 442 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.3681, allocations: 0 / 442 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3681, allocations: 0 / 442 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.3691, allocations: 498.2 kB / 442.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.3692, allocations: 31.91 kB / 442.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.221e-05/0.3692, allocations: 8 kB / 442.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.3694, allocations: 11.98 kB / 442.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.977e-05/0.3695, allocations: 27.84 kB / 442.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.3695, allocations: 7.984 kB / 442.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000137/0.3696, allocations: 141.5 kB / 442.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3696, allocations: 4 kB / 442.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004327/0.3701, allocations: 47.94 kB / 442.7 MB, free: 12.13 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.0001827/0.3703, allocations: 107.2 kB / 442.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006336/0.3709, allocations: 210.6 kB / 443.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3709, allocations: 0 / 443.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000297/0.3712, allocations: 116 kB / 443.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004152/0.3716, allocations: 32.02 kB / 443.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/0.373, allocations: 0.6931 MB / 443.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.3732, allocations: 154.8 kB / 444 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001625/0.3734, allocations: 41.91 kB / 444.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.712e-05/0.3735, allocations: 31.42 kB / 444.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3735, allocations: 0 / 444.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of Templates: time 0.007347/0.3808, allocations: 2.108 MB / 446.2 MB, free: 8.602 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 -s cvode -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.36699187499471]