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.001711/0.001711, allocations: 117 kB / 18.49 MB, free: 4.566 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.001462/0.001462, allocations: 216.7 kB / 21.46 MB, free: 1.613 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.549/1.549, allocations: 230.4 MB / 254.7 MB, free: 14.98 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: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 63.91 kB / 373.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1225, allocations: 53.37 MB / 427.1 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003736/0.1262, allocations: 2.233 MB / 429.3 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001395/0.1276, allocations: 0.7478 MB / 430 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.1278, allocations: 11.88 kB / 430 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002042/0.128, allocations: 51.52 kB / 430.1 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002353/0.1282, allocations: 43.59 kB / 430.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003407/0.1286, allocations: 103.8 kB / 430.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003427/0.1289, allocations: 223.8 kB / 430.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002483/0.1291, allocations: 87.53 kB / 430.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002329/0.1294, allocations: 107.6 kB / 430.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000178/0.1296, allocations: 111.4 kB / 430.8 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.812e-05/0.1296, allocations: 19.94 kB / 430.8 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.61e-05/0.1297, allocations: 35.98 kB / 430.8 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.614e-05/0.1298, allocations: 59.77 kB / 430.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001155/0.1299, allocations: 103.3 kB / 431 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003711/0.1303, allocations: 262.7 kB / 431.2 MB, free: 400 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1303, allocations: 0 / 431.2 MB, free: 400 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1303, allocations: 0 / 431.2 MB, free: 400 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.1303, allocations: 0 / 431.2 MB, free: 400 kB / 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.2201/0.3504, allocations: 0.544 MB / 431.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.3504, allocations: 9.656 kB / 431.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.578e-05/0.3505, allocations: 5.531 kB / 431.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.369e-05/0.3505, allocations: 52.56 kB / 431.8 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000191/0.3507, allocations: 33.03 kB / 431.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003174/0.351, allocations: 260 kB / 432.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.994e-05/0.3511, allocations: 15.02 kB / 432.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.251e-05/0.3511, allocations: 25.69 kB / 432.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005058/0.3516, allocations: 261.1 kB / 432.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.3516, allocations: 1.25 kB / 432.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.319e-05/0.3517, allocations: 6.906 kB / 432.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.157e-05/0.3517, allocations: 12.67 kB / 432.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004791/0.3522, allocations: 197.5 kB / 432.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.3532, allocations: 0.8183 MB / 433.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003506/0.3535, allocations: 176.9 kB / 433.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/0.3537, allocations: 99.02 kB / 433.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.32e-05/0.3538, allocations: 87.62 kB / 433.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.3538, allocations: 41.03 kB / 433.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.714e-06/0.3538, allocations: 0 / 433.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001371/0.3552, allocations: 0.7226 MB / 434.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.507e-05/0.3552, allocations: 54.25 kB / 434.6 MB, free: 9.695 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.3554, allocations: 217.2 kB / 434.8 MB, free: 9.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.3554, allocations: 30.2 kB / 434.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.96e-05/0.3555, allocations: 150.1 kB / 435 MB, free: 9.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.647e-05/0.3556, allocations: 91.36 kB / 435.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.729e-05/0.3557, allocations: 52.94 kB / 435.2 MB, free: 9.383 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.042e-05/0.3557, allocations: 331.7 kB / 435.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.3559, allocations: 82.97 kB / 435.6 MB, free: 9.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/0.3561, allocations: 118.4 kB / 435.7 MB, free: 9.039 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003922/0.3565, allocations: 217.9 kB / 435.9 MB, free: 9.004 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3565, allocations: 1 kB / 435.9 MB, free: 9.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005161/0.357, allocations: 289.3 kB / 436.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.3571, allocations: 9.625 kB / 436.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.3571, allocations: 1.156 kB / 436.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.3571, allocations: 4 kB / 436.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002757/0.3574, allocations: 55.53 kB / 436.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.3574, allocations: 1.781 kB / 436.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001268/0.3575, allocations: 17.52 kB / 436.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.964e-05/0.3575, allocations: 17.05 kB / 436.3 MB, free: 8.887 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.0001131/0.3576, allocations: 143.1 kB / 436.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.075e-05/0.3577, allocations: 23.62 kB / 436.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005883/0.3583, allocations: 288.8 kB / 436.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.3583, allocations: 4.406 kB / 436.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3583, allocations: 0.6094 kB / 436.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3583, allocations: 2.578 kB / 436.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009968/0.3593, allocations: 0.6889 MB / 437.4 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3593, allocations: 2.406 kB / 437.4 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002807/0.3596, allocations: 57.53 kB / 437.5 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.3596, allocations: 0.9688 kB / 437.5 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.3596, allocations: 7.859 kB / 437.5 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.3596, allocations: 6.656 kB / 437.5 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3596, allocations: 1.219 kB / 437.5 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007808/0.3604, allocations: 486.5 kB / 438 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.383e-05/0.3605, allocations: 119.8 kB / 438.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.264e-05/0.3605, allocations: 6.969 kB / 438.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001488/0.3606, allocations: 18.81 kB / 438.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.061e-05/0.3607, allocations: 24.16 kB / 438.1 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.3607, allocations: 7.109 kB / 438.1 MB, free: 7.777 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001291/0.3609, allocations: 158.7 kB / 438.3 MB, free: 7.676 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3609, allocations: 0 / 438.3 MB, free: 7.676 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003113/0.3612, allocations: 42.12 kB / 438.3 MB, free: 7.672 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.001004/0.3622, allocations: 1.031 MB / 439.4 MB, free: 6.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005336/0.3627, allocations: 207.8 kB / 439.6 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3627, allocations: 1.5 kB / 439.6 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002538/0.363, allocations: 116.3 kB / 439.7 MB, free: 6.805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.3633, allocations: 22.42 kB / 439.7 MB, free: 6.793 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003141/0.3664, allocations: 2.704 MB / 442.4 MB, free: 4.949 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.3666, allocations: 0.7623 MB / 443.2 MB, free: 4.246 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001365/0.3668, allocations: 47.31 kB / 443.2 MB, free: 4.242 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.3669, allocations: 87.41 kB / 443.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3669, allocations: 0 / 443.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02977/0.3967, allocations: 4.587 MB / 447.9 MB, free: 3.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.618/9.014, allocations: 12.3 kB / 447.9 MB, free: 3.551 MB / 350.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --stepSize=5e-05 --timeout=50 --tolerance=1e-05 Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" 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.891329348960426]