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.00158/0.00158, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002121/0.002121, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 59.44 kB / 307 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08459/0.08588, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003772/0.08969, allocations: 2.207 MB / 359.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.0911, allocations: 0.7517 MB / 360.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001907/0.09131, allocations: 3.938 kB / 360.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001909/0.09151, allocations: 43.53 kB / 360.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002163/0.09177, allocations: 43.59 kB / 360.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003118/0.0921, allocations: 103.8 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003192/0.09243, allocations: 239.7 kB / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002532/0.09269, allocations: 111.5 kB / 361.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002418/0.09294, allocations: 103.6 kB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001664/0.09312, allocations: 115.4 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.056e-05/0.09317, allocations: 16 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001/0.09328, allocations: 32 kB / 361.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.365e-05/0.09336, allocations: 55.83 kB / 361.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.09347, allocations: 107.3 kB / 361.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002949/0.09377, allocations: 239.4 kB / 361.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.09379, allocations: 0 / 361.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.0938, allocations: 4 kB / 361.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.09381, allocations: 0 / 361.7 MB, free: 9.82 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.0009026/0.09472, allocations: 0.5379 MB / 362.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.09477, allocations: 12.03 kB / 362.3 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.201e-05/0.09484, allocations: 58.73 kB / 362.3 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.09497, allocations: 32.64 kB / 362.4 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002715/0.09525, allocations: 263.4 kB / 362.6 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.434e-05/0.09528, allocations: 16.81 kB / 362.6 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.363e-05/0.09533, allocations: 20.38 kB / 362.7 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004523/0.09579, allocations: 262.7 kB / 362.9 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.09582, allocations: 3.906 kB / 362.9 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.212e-05/0.09584, allocations: 12 kB / 362.9 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.428e-05/0.09587, allocations: 8.438 kB / 362.9 MB, free: 8.492 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004592/0.09634, allocations: 201.5 kB / 363.1 MB, free: 8.297 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.09744, allocations: 0.8224 MB / 364 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003521/0.09781, allocations: 183.7 kB / 364.1 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002073/0.09803, allocations: 108.8 kB / 364.2 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.223e-05/0.09813, allocations: 85.47 kB / 364.3 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.384e-05/0.09816, allocations: 38.5 kB / 364.4 MB, free: 6.973 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.693e-06/0.09817, allocations: 0 / 364.4 MB, free: 6.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001412/0.09959, allocations: 0.7256 MB / 365.1 MB, free: 6.191 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.75e-05/0.09964, allocations: 51.41 kB / 365.1 MB, free: 6.129 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001899/0.09983, allocations: 217 kB / 365.4 MB, free: 5.906 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.09986, allocations: 29.7 kB / 365.4 MB, free: 5.871 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.245e-05/0.09995, allocations: 148.4 kB / 365.5 MB, free: 5.723 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.289e-05/0.1, allocations: 78.81 kB / 365.6 MB, free: 5.645 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.705e-05/0.1001, allocations: 53.7 kB / 365.7 MB, free: 5.586 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.1002, allocations: 334.8 kB / 366 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002276/0.1004, allocations: 79.94 kB / 366.1 MB, free: 5.172 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002155/0.1007, allocations: 127.4 kB / 366.2 MB, free: 5.035 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004081/0.1011, allocations: 218.8 kB / 366.4 MB, free: 4.812 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.1011, allocations: 0 / 366.4 MB, free: 4.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005144/0.1016, allocations: 277.2 kB / 366.7 MB, free: 4.535 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.1016, allocations: 4 kB / 366.7 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.1017, allocations: 8.062 kB / 366.7 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.1017, allocations: 0 / 366.7 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002761/0.102, allocations: 63.89 kB / 366.7 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.102, allocations: 4 kB / 366.7 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001342/0.1021, allocations: 15.98 kB / 366.8 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.666e-05/0.1021, allocations: 4.062 kB / 366.8 MB, free: 4.438 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.0001328/0.1023, allocations: 153.6 kB / 366.9 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5e-05/0.1023, allocations: 31.66 kB / 366.9 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000585/0.1029, allocations: 291.2 kB / 367.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.1029, allocations: 4 kB / 367.2 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.103, allocations: 0 / 367.2 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.103, allocations: 3.984 kB / 367.2 MB, free: 3.953 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.104, allocations: 0.6906 MB / 367.9 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.104, allocations: 0 / 367.9 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000305/0.1043, allocations: 59.84 kB / 368 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.194e-06/0.1043, allocations: 4 kB / 368 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.1044, allocations: 3.984 kB / 368 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.595e-06/0.1044, allocations: 7.938 kB / 368 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.1044, allocations: 3.984 kB / 368 MB, free: 3.125 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000887/0.1053, allocations: 484.4 kB / 368.5 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.1054, allocations: 116.9 kB / 368.6 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.481e-05/0.1054, allocations: 8 kB / 368.6 MB, free: 2.488 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/0.1057, allocations: 15.92 kB / 368.6 MB, free: 2.473 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.335e-05/0.1057, allocations: 23.98 kB / 368.6 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.1058, allocations: 7.984 kB / 368.6 MB, free: 2.441 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001316/0.1059, allocations: 156.4 kB / 368.8 MB, free: 2.289 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1059, allocations: 0 / 368.8 MB, free: 2.289 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003832/0.1063, allocations: 48 kB / 368.8 MB, free: 2.242 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.001161/0.1075, allocations: 1.027 MB / 369.9 MB, free: 1.188 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005748/0.108, allocations: 247.8 kB / 370.1 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1081, allocations: 0 / 370.1 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000257/0.1083, allocations: 124 kB / 370.2 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003625/0.1087, allocations: 31.48 kB / 370.3 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1611/0.2699, allocations: 2.678 MB / 372.9 MB, free: 19.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002422/0.2701, allocations: 0.7622 MB / 373.7 MB, free: 18.47 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001697/0.2703, allocations: 52.66 kB / 373.8 MB, free: 18.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.2704, allocations: 88.14 kB / 373.8 MB, free: 18.46 MB / 302.1 MB Notification: Performance of SimCode: time 7.02e-07/0.2704, allocations: 1.531 kB / 373.8 MB, free: 18.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02533/0.2958, allocations: 4.413 MB / 378.3 MB, free: 18.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.84/8.136, allocations: 9.703 kB / 378.3 MB, free: 18 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