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.001383/0.001383, allocations: 105.4 kB / 19.8 MB, free: 2.516 MB / 14.72 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.001457/0.001457, allocations: 216.5 kB / 23 MB, free: 5.609 MB / 14.72 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.477/1.477, allocations: 230.2 MB / 256.2 MB, free: 8.551 MB / 206.1 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 0.001911/0.001911, allocations: 63.89 kB / 376.5 MB, free: 3.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3581/0.36, allocations: 53.33 MB / 429.8 MB, free: 7.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004298/0.3643, allocations: 2.237 MB / 432 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001656/0.3659, allocations: 0.7556 MB / 432.8 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.3661, allocations: 4 kB / 432.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002174/0.3663, allocations: 47.45 kB / 432.8 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002337/0.3665, allocations: 43.64 kB / 432.9 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003275/0.3669, allocations: 103.7 kB / 433 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003506/0.3672, allocations: 239.6 kB / 433.2 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002492/0.3674, allocations: 83.59 kB / 433.3 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002384/0.3677, allocations: 95.56 kB / 433.4 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000185/0.3679, allocations: 111.5 kB / 433.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.838e-05/0.3679, allocations: 16 kB / 433.5 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.368, allocations: 43.97 kB / 433.6 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.577e-05/0.3681, allocations: 51.78 kB / 433.6 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001348/0.3682, allocations: 107.3 kB / 433.7 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003806/0.3686, allocations: 252.1 kB / 434 MB, free: 3.355 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3686, allocations: 0 / 434 MB, free: 3.355 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3686, allocations: 4 kB / 434 MB, free: 3.352 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.3686, allocations: 0 / 434 MB, free: 3.352 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.001148/0.3698, allocations: 0.557 MB / 434.5 MB, free: 2.746 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.3698, allocations: 8.031 kB / 434.5 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000162/0.37, allocations: 32.78 kB / 434.6 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003653/0.3704, allocations: 255.9 kB / 434.8 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.3704, allocations: 16.81 kB / 434.8 MB, free: 2.402 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.434e-05/0.3705, allocations: 20.38 kB / 434.8 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005094/0.371, allocations: 262.9 kB / 435.1 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.371, allocations: 0 / 435.1 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.27e-05/0.371, allocations: 15.98 kB / 435.1 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.145e-05/0.371, allocations: 8.438 kB / 435.1 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004671/0.3715, allocations: 201.5 kB / 435.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001311/0.3728, allocations: 0.8187 MB / 436.1 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000381/0.3732, allocations: 170.4 kB / 436.3 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/0.3734, allocations: 104.8 kB / 436.4 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001163/0.3735, allocations: 85.09 kB / 436.5 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.3736, allocations: 38.88 kB / 436.5 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.373e-06/0.3736, allocations: 4 kB / 436.5 MB, free: 0.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001618/0.3752, allocations: 0.7305 MB / 437.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.268e-05/0.3753, allocations: 55.41 kB / 437.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003341/0.3756, allocations: 213 kB / 437.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.441e-05/0.3756, allocations: 33.7 kB / 437.6 MB, free: 15.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001771/0.3758, allocations: 148.5 kB / 437.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.697e-05/0.3759, allocations: 83.23 kB / 437.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.376, allocations: 53.69 kB / 437.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002779/0.3763, allocations: 334.8 kB / 438.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/0.3765, allocations: 79.89 kB / 438.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002828/0.3768, allocations: 131.3 kB / 438.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004661/0.3773, allocations: 214.7 kB / 438.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.3773, allocations: 3.938 kB / 438.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005597/0.3778, allocations: 289.3 kB / 438.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.3778, allocations: 4 kB / 438.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.3779, allocations: 0 / 438.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.3779, allocations: 4 kB / 438.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002875/0.3782, allocations: 59.89 kB / 438.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.3782, allocations: 0 / 438.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.3783, allocations: 15.98 kB / 439 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/0.3783, allocations: 12 kB / 439 MB, free: 14.02 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.0001697/0.3785, allocations: 145.8 kB / 439.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.092e-05/0.3785, allocations: 23.86 kB / 439.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006388/0.3792, allocations: 291.2 kB / 439.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.3792, allocations: 4 kB / 439.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.3792, allocations: 0 / 439.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3792, allocations: 7.922 kB / 439.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/0.3804, allocations: 0.6906 MB / 440.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3804, allocations: 4 kB / 440.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002768/0.3807, allocations: 55.95 kB / 440.2 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.3807, allocations: 0 / 440.2 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.3807, allocations: 8 kB / 440.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.3807, allocations: 7.938 kB / 440.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3807, allocations: 4.031 kB / 440.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008441/0.3816, allocations: 481.9 kB / 440.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.3817, allocations: 117 kB / 440.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.615e-05/0.3817, allocations: 8 kB / 440.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.3819, allocations: 19.92 kB / 440.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.932e-05/0.3819, allocations: 19.97 kB / 440.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.594e-05/0.3819, allocations: 8 kB / 440.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001677/0.3821, allocations: 156.5 kB / 441 MB, free: 11.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3821, allocations: 0 / 441 MB, free: 11.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003027/0.3824, allocations: 40 kB / 441 MB, free: 11.85 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.0001957/0.3826, allocations: 115.1 kB / 441.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005846/0.3832, allocations: 216 kB / 441.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.113e-06/0.3832, allocations: 3.938 kB / 441.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002998/0.3835, allocations: 111.9 kB / 441.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003741/0.3839, allocations: 24.42 kB / 441.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.3852, allocations: 0.7083 MB / 442.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004833/0.3856, allocations: 0.7561 MB / 443 MB, free: 9.863 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001335/0.3858, allocations: 45.92 kB / 443 MB, free: 9.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.678e-05/0.3859, allocations: 27.42 kB / 443 MB, free: 9.793 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3859, allocations: 0 / 443 MB, free: 9.793 MB / 350.1 MB Notification: Performance of Templates: time 0.006306/0.3922, allocations: 2.108 MB / 445.1 MB, free: 7.688 MB / 350.1 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: 5.058066097088158]