Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001784/0.001796, allocations: 116.2 kB / 17.07 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00265/0.00265, allocations: 198.9 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.79/2.79, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002055/0.002055, allocations: 47.94 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4156/0.4177, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.006113/0.4238, allocations: 2.186 MB / 402.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002302/0.4262, allocations: 0.7088 MB / 403.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003452/0.4266, allocations: 3.938 kB / 403.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003461/0.427, allocations: 47.47 kB / 403.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004162/0.4274, allocations: 39.66 kB / 403.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000632/0.4281, allocations: 103.8 kB / 403.3 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006671/0.4288, allocations: 239.7 kB / 403.5 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004055/0.4292, allocations: 111.5 kB / 403.7 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002978/0.4295, allocations: 87.62 kB / 403.7 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002998/0.4299, allocations: 119.5 kB / 403.9 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.077e-05/0.4299, allocations: 16 kB / 403.9 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001337/0.4301, allocations: 27.98 kB / 403.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.4302, allocations: 55.78 kB / 404 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001538/0.4304, allocations: 111.3 kB / 404.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004666/0.4309, allocations: 248.7 kB / 404.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.4309, allocations: 0 / 404.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.067e-06/0.4309, allocations: 4 kB / 404.3 MB, free: 4.715 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.4309, allocations: 0 / 404.3 MB, free: 4.715 MB / 318.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.001382/0.4323, allocations: 0.5409 MB / 404.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.4324, allocations: 12.03 kB / 404.9 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.44e-05/0.4325, allocations: 58.73 kB / 404.9 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.811e-05/0.4326, allocations: 32.56 kB / 405 MB, free: 4.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004678/0.433, allocations: 253.1 kB / 405.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.206e-05/0.4331, allocations: 16.56 kB / 405.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.943e-05/0.4331, allocations: 27.94 kB / 405.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007256/0.4339, allocations: 254.7 kB / 405.5 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/0.4339, allocations: 0 / 405.5 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.92e-05/0.434, allocations: 12 kB / 405.5 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.722e-05/0.434, allocations: 12.42 kB / 405.5 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007925/0.4348, allocations: 197.5 kB / 405.7 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.437, allocations: 0.8184 MB / 406.5 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000638/0.4376, allocations: 194.6 kB / 406.7 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003956/0.438, allocations: 113.1 kB / 406.8 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001489/0.4382, allocations: 85.09 kB / 406.9 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.4383, allocations: 34.56 kB / 406.9 MB, free: 1.879 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 2.825e-06/0.4383, allocations: 0 / 406.9 MB, free: 1.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.002532/0.4408, allocations: 0.7221 MB / 407.7 MB, free: 1.102 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.138e-05/0.4409, allocations: 55.41 kB / 407.7 MB, free: 1.035 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003541/0.4413, allocations: 209 kB / 407.9 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.805e-05/0.4413, allocations: 33.7 kB / 408 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001936/0.4415, allocations: 152.3 kB / 408.1 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/0.4417, allocations: 82.81 kB / 408.2 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/0.4418, allocations: 49.69 kB / 408.2 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002678/0.4421, allocations: 338.8 kB / 408.6 MB, free: 156 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003481/0.4425, allocations: 83.89 kB / 408.6 MB, free: 72 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004244/0.4429, allocations: 131.3 kB / 408.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007551/0.4437, allocations: 218.3 kB / 409 MB, free: 15.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.4437, allocations: 0 / 409 MB, free: 15.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009635/0.4447, allocations: 269.2 kB / 409.3 MB, free: 15.44 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.4447, allocations: 12.06 kB / 409.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.4448, allocations: 0 / 409.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.596e-05/0.4448, allocations: 4 kB / 409.3 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000515/0.4453, allocations: 63.89 kB / 409.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.4453, allocations: 0 / 409.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002346/0.4456, allocations: 19.92 kB / 409.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/0.4456, allocations: 8 kB / 409.4 MB, free: 15.33 MB / 334.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.0002195/0.4459, allocations: 141.8 kB / 409.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.276e-05/0.446, allocations: 27.72 kB / 409.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/0.4471, allocations: 291.9 kB / 409.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.4471, allocations: 8 kB / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.4471, allocations: 0 / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.4471, allocations: 7.922 kB / 409.8 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001904/0.4491, allocations: 0.6868 MB / 410.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.4491, allocations: 0 / 410.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000505/0.4496, allocations: 55.95 kB / 410.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.104e-05/0.4496, allocations: 3.938 kB / 410.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.687e-05/0.4497, allocations: 8 kB / 410.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.4497, allocations: 0 / 410.6 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.246e-06/0.4497, allocations: 7.938 kB / 410.6 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/0.4511, allocations: 481.4 kB / 411.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001921/0.4513, allocations: 120.8 kB / 411.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.672e-05/0.4514, allocations: 8 kB / 411.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002685/0.4517, allocations: 11.98 kB / 411.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.656e-05/0.4518, allocations: 15.97 kB / 411.2 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-05/0.4518, allocations: 16 kB / 411.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002191/0.4521, allocations: 152.5 kB / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4521, allocations: 0 / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005519/0.4526, allocations: 44 kB / 411.4 MB, free: 13.16 MB / 334.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.001823/0.4545, allocations: 1.039 MB / 412.5 MB, free: 12.1 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000868/0.4554, allocations: 219.9 kB / 412.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.4554, allocations: 0 / 412.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004363/0.4559, allocations: 120 kB / 412.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005587/0.4564, allocations: 40.3 kB / 412.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005653/0.4621, allocations: 2.691 MB / 415.5 MB, free: 8.926 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004914/0.4626, allocations: 0.7753 MB / 416.3 MB, free: 8.121 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002224/0.4629, allocations: 45.91 kB / 416.3 MB, free: 8.078 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002119/0.4631, allocations: 79.41 kB / 416.4 MB, free: 8 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4631, allocations: 0 / 416.4 MB, free: 8 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.179/6.642, allocations: 4.65 MB / 421.1 MB, free: 3.426 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 27.56/34.2, allocations: 15.84 kB / 421.1 MB, free: 3.414 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches