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.001382/0.001382, allocations: 120.1 kB / 18.49 MB, free: 4.586 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.0014/0.0014, allocations: 215 kB / 21.45 MB, free: 1.641 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.461/1.461, allocations: 230.6 MB / 254.8 MB, free: 15.12 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: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 43.94 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1316, allocations: 53.33 MB / 427 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004235/0.1359, allocations: 2.233 MB / 429.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001652/0.1375, allocations: 0.7478 MB / 430 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002029/0.1377, allocations: 11.94 kB / 430 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000235/0.138, allocations: 51.45 kB / 430.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002676/0.1382, allocations: 35.66 kB / 430.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004157/0.1386, allocations: 107.7 kB / 430.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003956/0.139, allocations: 227.8 kB / 430.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002697/0.1393, allocations: 87.53 kB / 430.5 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002933/0.1396, allocations: 107.6 kB / 430.6 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001837/0.1398, allocations: 103.5 kB / 430.7 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.967e-05/0.1398, allocations: 20 kB / 430.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.1399, allocations: 39.92 kB / 430.8 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.288e-05/0.14, allocations: 59.77 kB / 430.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.1401, allocations: 103.3 kB / 430.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004185/0.1406, allocations: 258.7 kB / 431.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.1406, allocations: 4 kB / 431.2 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1406, allocations: 0 / 431.2 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.1406, allocations: 0 / 431.2 MB, free: 0.6055 MB / 350.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.001072/0.1416, allocations: 0.5455 MB / 431.7 MB, free: 12 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.1417, allocations: 8.031 kB / 431.7 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.701e-05/0.1417, allocations: 4.625 kB / 431.7 MB, free: 0 / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2221/0.3638, allocations: 54.47 kB / 431.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002108/0.3641, allocations: 34.89 kB / 431.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000377/0.3644, allocations: 258.5 kB / 432.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.675e-05/0.3645, allocations: 16.78 kB / 432.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.032e-05/0.3645, allocations: 25.64 kB / 432.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005998/0.3651, allocations: 260 kB / 432.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.3652, allocations: 0 / 432.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.636e-05/0.3652, allocations: 9.312 kB / 432.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.064e-05/0.3652, allocations: 16.75 kB / 432.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000517/0.3657, allocations: 192.7 kB / 432.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/0.3669, allocations: 0.8141 MB / 433.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003797/0.3672, allocations: 177.1 kB / 433.6 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002174/0.3675, allocations: 104.9 kB / 433.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.783e-05/0.3676, allocations: 82.05 kB / 433.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.131e-05/0.3676, allocations: 38.41 kB / 433.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.713e-06/0.3676, allocations: 0 / 433.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001451/0.369, allocations: 0.7335 MB / 434.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.3691, allocations: 53.75 kB / 434.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/0.3692, allocations: 219 kB / 434.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.3693, allocations: 25.7 kB / 434.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.147e-05/0.3693, allocations: 156.4 kB / 435 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.044e-05/0.3694, allocations: 85.92 kB / 435.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.175e-05/0.3695, allocations: 53.16 kB / 435.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.597e-05/0.3695, allocations: 332.9 kB / 435.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/0.3697, allocations: 87.38 kB / 435.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002105/0.3699, allocations: 124.4 kB / 435.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004088/0.3704, allocations: 219.9 kB / 435.9 MB, free: 9.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.3704, allocations: 0 / 435.9 MB, free: 9.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005351/0.3709, allocations: 272.2 kB / 436.1 MB, free: 9.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.3709, allocations: 6.469 kB / 436.1 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.3709, allocations: 1.125 kB / 436.1 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-05/0.3709, allocations: 5.688 kB / 436.1 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003099/0.3712, allocations: 65.91 kB / 436.2 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.3713, allocations: 5.375 kB / 436.2 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.3714, allocations: 15.22 kB / 436.2 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.3714, allocations: 11.8 kB / 436.2 MB, free: 9.402 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.0001191/0.3715, allocations: 145 kB / 436.4 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.225e-05/0.3716, allocations: 22.92 kB / 436.4 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006032/0.3722, allocations: 289 kB / 436.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.3722, allocations: 3.469 kB / 436.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3722, allocations: 3.062 kB / 436.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3722, allocations: 1.359 kB / 436.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.3733, allocations: 0.6871 MB / 437.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3733, allocations: 2.406 kB / 437.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002745/0.3735, allocations: 50.98 kB / 437.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.429e-06/0.3735, allocations: 2.5 kB / 437.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/0.3736, allocations: 9.734 kB / 437.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.3736, allocations: 8.359 kB / 437.4 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3736, allocations: 1.094 kB / 437.4 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000766/0.3743, allocations: 492.2 kB / 437.9 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.255e-05/0.3744, allocations: 122.6 kB / 438 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.126e-05/0.3745, allocations: 7 kB / 438.1 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001506/0.3746, allocations: 13.39 kB / 438.1 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.587e-05/0.3747, allocations: 23.14 kB / 438.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.46e-05/0.3747, allocations: 6.094 kB / 438.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000125/0.3748, allocations: 159.6 kB / 438.3 MB, free: 8.195 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3748, allocations: 0 / 438.3 MB, free: 8.195 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003227/0.3751, allocations: 45.62 kB / 438.3 MB, free: 8.188 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.0009988/0.3761, allocations: 1.036 MB / 439.3 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005445/0.3767, allocations: 210.3 kB / 439.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3767, allocations: 1.125 kB / 439.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002478/0.3769, allocations: 116.2 kB / 439.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.3773, allocations: 22.92 kB / 439.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00372/0.381, allocations: 2.693 MB / 442.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.3812, allocations: 0.7636 MB / 443.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001574/0.3814, allocations: 45.16 kB / 443.2 MB, free: 4.754 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/0.3815, allocations: 91.92 kB / 443.3 MB, free: 4.688 MB / 350.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3815, allocations: 0 / 443.3 MB, free: 4.688 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02621/0.4077, allocations: 4.589 MB / 447.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.261/8.669, allocations: 10.02 kB / 447.9 MB, free: 4.086 MB / 350.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --stepSize=5e-05 --timeout=50 --tolerance=1e-05 Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 52.5] 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 659] "" Variables in the reference:time,integrator.y,der1.y,cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi Variables in the result:cosB.constantAmplitude,cosB.constantFrequency,cosB.f,cosB.offset,cosB.phi,cosB.useConstantAmplitude,cosB.useConstantFrequency,cosB.y,cosBminus.constantAmplitude,cosBminus.constantFrequency,cosBminus.f,cosBminus.offset,cosBminus.phi,cosBminus.useConstantAmplitude,cosBminus.useConstantFrequency,cosBminus.y,der(cosB.phi),der(cosBminus.phi),der(der1.u),der(integrator.y),der(sinA.phi),der(sinAminus.phi),der1.u,der1.y,feedbackCos.u1,feedbackCos.u2,feedbackCos.y,feedbackSin.u1,feedbackSin.u2,feedbackSin.y,integrator.initType,integrator.k,integrator.u,integrator.use_reset,integrator.use_set,integrator.y,integrator.y_start,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,rotator.angle,rotator.n,rotator.u[1],rotator.u[2],rotator.y[1],rotator.y[2],sinA.constantAmplitude,sinA.constantFrequency,sinA.f,sinA.offset,sinA.phi,sinA.useConstantAmplitude,sinA.useConstantFrequency,sinA.y,sinAminus.constantAmplitude,sinAminus.constantFrequency,sinAminus.f,sinAminus.offset,sinAminus.phi,sinAminus.useConstantAmplitude,sinAminus.useConstantFrequency,sinAminus.y,time,toPolar.n,toPolar.u[1],toPolar.u[2],toPolar.y[1],toPolar.y[2],w,wrapAngle.positiveRange,wrapAngle.u,wrapAngle.y [Calling sys.exit(0), Time elapsed: 12.254919450962916]