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.001073/0.001073, allocations: 105.9 kB / 16.5 MB, free: 6.688 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.001212/0.001212, allocations: 193.9 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001177, allocations: 42.77 kB / 300.1 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1039, allocations: 49.45 MB / 349.5 MB, free: 4.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004248/0.1082, allocations: 2.237 MB / 351.7 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00147/0.1097, allocations: 0.6816 MB / 352.4 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002369/0.1099, allocations: 7.938 kB / 352.4 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002216/0.1102, allocations: 35.72 kB / 352.5 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002601/0.1105, allocations: 43.7 kB / 352.5 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003347/0.1108, allocations: 83.86 kB / 352.6 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000331/0.1112, allocations: 219.7 kB / 352.8 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002771/0.1115, allocations: 107.6 kB / 352.9 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001894/0.1117, allocations: 87.56 kB / 353 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002009/0.1119, allocations: 103.5 kB / 353.1 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.236e-05/0.1119, allocations: 8 kB / 353.1 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.551e-05/0.112, allocations: 27.98 kB / 353.1 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.879e-05/0.1121, allocations: 47.78 kB / 353.2 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.1122, allocations: 107.3 kB / 353.3 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002845/0.1125, allocations: 215.5 kB / 353.5 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1126, allocations: 0 / 353.5 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.1126, allocations: 3.938 kB / 353.5 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.1126, allocations: 4 kB / 353.5 MB, free: 0.5078 MB / 286.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.0009754/0.1136, allocations: 0.5457 MB / 354.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.1136, allocations: 12.03 kB / 354.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.361e-05/0.1137, allocations: 54.73 kB / 354.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.232e-05/0.1138, allocations: 36.55 kB / 354.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.1141, allocations: 248.4 kB / 354.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.273e-05/0.1141, allocations: 16.81 kB / 354.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.864e-05/0.1142, allocations: 31.92 kB / 354.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004828/0.1146, allocations: 262.6 kB / 354.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.1147, allocations: 0 / 354.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.1147, allocations: 4 kB / 354.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.526e-05/0.1147, allocations: 16.44 kB / 354.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004598/0.1152, allocations: 185.6 kB / 354.9 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.1164, allocations: 0.834 MB / 355.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003882/0.1168, allocations: 182.5 kB / 355.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002175/0.1171, allocations: 101.2 kB / 356 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001164/0.1172, allocations: 97.03 kB / 356.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.1172, allocations: 38.5 kB / 356.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.523e-06/0.1172, allocations: 3.938 kB / 356.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001584/0.1188, allocations: 0.7193 MB / 356.9 MB, free: 12.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.1189, allocations: 55.41 kB / 356.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002214/0.1191, allocations: 217 kB / 357.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.226e-05/0.1192, allocations: 33.64 kB / 357.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.1193, allocations: 152.4 kB / 357.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.334e-05/0.1194, allocations: 82.75 kB / 357.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.642e-05/0.1195, allocations: 53.69 kB / 357.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.1196, allocations: 330.8 kB / 357.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.1198, allocations: 83.94 kB / 357.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.1201, allocations: 123.4 kB / 358 MB, free: 11.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000425/0.1205, allocations: 208.6 kB / 358.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1205, allocations: 4 kB / 358.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005725/0.1211, allocations: 283.5 kB / 358.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.1211, allocations: 6.812 kB / 358.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1211, allocations: 0 / 358.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.1211, allocations: 4 kB / 358.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002962/0.1214, allocations: 59.95 kB / 358.5 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.1215, allocations: 7.922 kB / 358.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.1216, allocations: 23.98 kB / 358.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/0.1216, allocations: 8 kB / 358.6 MB, free: 11.11 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.0001509/0.1218, allocations: 137.8 kB / 358.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.044e-05/0.1219, allocations: 23.78 kB / 358.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006086/0.1225, allocations: 291.2 kB / 359 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.1225, allocations: 8 kB / 359 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.1225, allocations: 0 / 359 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.1225, allocations: 7.922 kB / 359 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.1236, allocations: 0.6789 MB / 359.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.1236, allocations: 7.984 kB / 359.7 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002799/0.1239, allocations: 59.92 kB / 359.8 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.1239, allocations: 3.938 kB / 359.8 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.106e-05/0.1239, allocations: 8 kB / 359.8 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1239, allocations: 4 kB / 359.8 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.124, allocations: 0 / 359.8 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008135/0.1248, allocations: 488.3 kB / 360.3 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.1249, allocations: 116.9 kB / 360.4 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.076e-05/0.1249, allocations: 11.94 kB / 360.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001614/0.1251, allocations: 11.98 kB / 360.4 MB, free: 9.164 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.484e-05/0.1252, allocations: 19.91 kB / 360.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.1252, allocations: 8 kB / 360.4 MB, free: 9.137 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001554/0.1254, allocations: 156.5 kB / 360.6 MB, free: 8.984 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1254, allocations: 0 / 360.6 MB, free: 8.984 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003418/0.1257, allocations: 51.94 kB / 360.6 MB, free: 8.934 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.001194/0.1269, allocations: 1.035 MB / 361.7 MB, free: 7.871 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005031/0.1275, allocations: 219.8 kB / 361.9 MB, free: 7.656 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1275, allocations: 0 / 361.9 MB, free: 7.656 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002422/0.1277, allocations: 123.9 kB / 362 MB, free: 7.535 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003631/0.1281, allocations: 20.44 kB / 362 MB, free: 7.516 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003653/0.1318, allocations: 2.78 MB / 364.8 MB, free: 4.637 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003385/0.1321, allocations: 0.7642 MB / 365.6 MB, free: 3.844 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001435/0.1323, allocations: 45.91 kB / 365.6 MB, free: 3.797 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001361/0.1324, allocations: 87.41 kB / 365.7 MB, free: 3.715 MB / 302.1 MB Notification: Performance of SimCode: time 2.134e-06/0.1324, allocations: 0 / 365.7 MB, free: 3.715 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1847/0.3171, allocations: 4.218 MB / 369.9 MB, free: 24.95 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001659/0.3173, allocations: 185.7 kB / 370.1 MB, free: 24.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.872/2.189, allocations: 3.391 kB / 370.1 MB, free: 24.7 MB / 302.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