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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006981/0.0006981, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007966/0.0007966, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 227.7 MB / 246.8 MB, free: 11.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002061/0.0002062, allocations: 8 kB / 307.8 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0916/0.09182, allocations: 51.52 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002435/0.09429, allocations: 1.894 MB / 361.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.09554, allocations: 0.7285 MB / 362 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001441/0.09571, allocations: 3.938 kB / 362 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.09589, allocations: 35.66 kB / 362 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.09608, allocations: 35.78 kB / 362.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002585/0.09635, allocations: 91.83 kB / 362.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002609/0.09662, allocations: 219.6 kB / 362.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002353/0.09686, allocations: 115.5 kB / 362.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001907/0.09706, allocations: 71.59 kB / 362.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000134/0.0972, allocations: 91.47 kB / 362.6 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.505e-05/0.09724, allocations: 4 kB / 362.6 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.909e-05/0.09732, allocations: 24 kB / 362.7 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.638e-05/0.09739, allocations: 39.83 kB / 362.7 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.257e-05/0.09749, allocations: 117 kB / 362.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002485/0.09775, allocations: 219.4 kB / 363 MB, free: 9.496 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.09776, allocations: 4 kB / 363 MB, free: 9.492 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.09777, allocations: 0 / 363 MB, free: 9.492 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.09778, allocations: 3.938 kB / 363 MB, free: 9.488 MB / 302.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.0008103/0.0986, allocations: 0.5131 MB / 363.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.09865, allocations: 8.031 kB / 363.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.678e-05/0.09872, allocations: 58.72 kB / 363.6 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.09884, allocations: 32.56 kB / 363.6 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002792/0.09913, allocations: 251.5 kB / 363.9 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.622e-05/0.09917, allocations: 16.81 kB / 363.9 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.38e-05/0.09922, allocations: 24.36 kB / 363.9 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004787/0.0997, allocations: 270.7 kB / 364.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.09973, allocations: 0 / 364.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/0.09975, allocations: 4 kB / 364.2 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.815e-05/0.09979, allocations: 12.44 kB / 364.2 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004527/0.1002, allocations: 205.6 kB / 364.4 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001137/0.1014, allocations: 0.8262 MB / 365.2 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000346/0.1017, allocations: 186.5 kB / 365.4 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002198/0.102, allocations: 116.2 kB / 365.5 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.584e-05/0.1021, allocations: 81.48 kB / 365.6 MB, free: 6.711 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.1021, allocations: 42.44 kB / 365.7 MB, free: 6.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.372e-06/0.1021, allocations: 4 kB / 365.7 MB, free: 6.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001451/0.1036, allocations: 0.7508 MB / 366.4 MB, free: 5.852 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.161e-05/0.1036, allocations: 51.41 kB / 366.5 MB, free: 5.789 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002017/0.1038, allocations: 216.9 kB / 366.7 MB, free: 5.566 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.1038, allocations: 29.7 kB / 366.7 MB, free: 5.531 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.548e-05/0.1039, allocations: 152.3 kB / 366.8 MB, free: 5.379 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.11e-05/0.104, allocations: 82.81 kB / 366.9 MB, free: 5.297 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.162e-05/0.1041, allocations: 29.7 kB / 367 MB, free: 5.262 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.1042, allocations: 338.8 kB / 367.3 MB, free: 4.922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002017/0.1044, allocations: 83.94 kB / 367.4 MB, free: 4.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002249/0.1046, allocations: 127.4 kB / 367.5 MB, free: 4.703 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004539/0.1051, allocations: 238 kB / 367.7 MB, free: 4.461 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1051, allocations: 0 / 367.7 MB, free: 4.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005227/0.1056, allocations: 289.1 kB / 368 MB, free: 4.172 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.1057, allocations: 4 kB / 368 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.1057, allocations: 4.062 kB / 368 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.1057, allocations: 4 kB / 368 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.106, allocations: 55.95 kB / 368.1 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.106, allocations: 7.938 kB / 368.1 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001286/0.1061, allocations: 19.97 kB / 368.1 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.629e-05/0.1062, allocations: 12 kB / 368.1 MB, free: 4.066 MB / 302.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.0001275/0.1063, allocations: 153.6 kB / 368.3 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.74e-05/0.1063, allocations: 23.72 kB / 368.3 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005857/0.1069, allocations: 299.2 kB / 368.6 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.1069, allocations: 7.938 kB / 368.6 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.107, allocations: 4 kB / 368.6 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.107, allocations: 0 / 368.6 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.108, allocations: 0.7038 MB / 369.3 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.108, allocations: 0 / 369.3 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002656/0.1083, allocations: 59.91 kB / 369.4 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.1083, allocations: 0 / 369.4 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.143e-05/0.1083, allocations: 8 kB / 369.4 MB, free: 2.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.1083, allocations: 7.922 kB / 369.4 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1083, allocations: 0 / 369.4 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008094/0.1091, allocations: 0.4977 MB / 369.9 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.219e-05/0.1092, allocations: 108.9 kB / 370 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.269e-05/0.1093, allocations: 11.98 kB / 370 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001449/0.1094, allocations: 15.94 kB / 370 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.667e-05/0.1095, allocations: 19.97 kB / 370 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/0.1095, allocations: 8 kB / 370 MB, free: 2.043 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001357/0.1097, allocations: 160.5 kB / 370.2 MB, free: 1.887 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1097, allocations: 0 / 370.2 MB, free: 1.887 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000285/0.11, allocations: 40 kB / 370.2 MB, free: 1.848 MB / 302.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.001122/0.1111, allocations: 1.046 MB / 371.3 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004818/0.1116, allocations: 228.1 kB / 371.5 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1116, allocations: 4.125 kB / 371.5 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002233/0.1118, allocations: 127.8 kB / 371.6 MB, free: 432 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003218/0.1122, allocations: 28.38 kB / 371.6 MB, free: 404 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1598/0.2719, allocations: 2.867 MB / 374.5 MB, free: 18.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/0.2722, allocations: 0.7672 MB / 375.3 MB, free: 17.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001736/0.2724, allocations: 47.86 kB / 375.3 MB, free: 17.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.2726, allocations: 86.36 kB / 375.4 MB, free: 17.42 MB / 302.1 MB Notification: Performance of SimCode: time 8.12e-07/0.2726, allocations: 0 / 375.4 MB, free: 17.42 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01718/0.2898, allocations: 4.074 MB / 379.5 MB, free: 17.14 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001406/0.2899, allocations: 190 kB / 379.7 MB, free: 16.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/1.943, allocations: 0 / 379.7 MB, free: 16.88 MB / 302.1 MB (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 --timeout=50 --tolerance=1e-05 Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches