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.001352/0.001352, allocations: 108 kB / 16.92 MB, free: 5.781 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.001178/0.001178, allocations: 191.5 kB / 17.85 MB, free: 5.164 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.426/1.426, allocations: 222.9 MB / 241.6 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001018/0.001018, allocations: 47.42 kB / 300.7 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1064, allocations: 49.45 MB / 350.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004086/0.1105, allocations: 2.198 MB / 352.4 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.1121, allocations: 0.6933 MB / 353 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001997/0.1123, allocations: 3.938 kB / 353 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000195/0.1125, allocations: 43.53 kB / 353.1 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002095/0.1127, allocations: 51.58 kB / 353.1 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003124/0.1131, allocations: 103.8 kB / 353.2 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002793/0.1133, allocations: 227.8 kB / 353.5 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002354/0.1136, allocations: 115.5 kB / 353.6 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001564/0.1137, allocations: 87.64 kB / 353.7 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001524/0.1139, allocations: 111.5 kB / 353.8 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.918e-05/0.114, allocations: 23.94 kB / 353.8 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.523e-05/0.114, allocations: 20 kB / 353.8 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.135e-05/0.1141, allocations: 67.75 kB / 353.9 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001061/0.1143, allocations: 107.3 kB / 354 MB, free: 492 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000299/0.1146, allocations: 235.4 kB / 354.2 MB, free: 256 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1146, allocations: 0 / 354.2 MB, free: 256 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1146, allocations: 0 / 354.2 MB, free: 256 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1146, allocations: 0 / 354.2 MB, free: 256 kB / 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.0009857/0.1156, allocations: 0.5457 MB / 354.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.1156, allocations: 16.03 kB / 354.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.319e-05/0.1157, allocations: 58.73 kB / 354.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.813e-05/0.1158, allocations: 28.56 kB / 354.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003198/0.1161, allocations: 256.3 kB / 355.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.995e-05/0.1161, allocations: 12.81 kB / 355.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.945e-05/0.1162, allocations: 27.94 kB / 355.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004893/0.1167, allocations: 250.7 kB / 355.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.1167, allocations: 0 / 355.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.441e-05/0.1168, allocations: 15.94 kB / 355.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.2e-05/0.1168, allocations: 16.42 kB / 355.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004581/0.1173, allocations: 189.6 kB / 355.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.1185, allocations: 0.8262 MB / 356.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003993/0.1189, allocations: 192.6 kB / 356.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002496/0.1191, allocations: 105.2 kB / 356.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001167/0.1193, allocations: 96.97 kB / 356.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.1193, allocations: 30.56 kB / 356.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 3.847e-06/0.1193, allocations: 4 kB / 356.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.00175/0.1211, allocations: 0.7178 MB / 357.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.1211, allocations: 55.41 kB / 357.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002518/0.1214, allocations: 213 kB / 357.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.395e-05/0.1214, allocations: 37.7 kB / 357.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.1216, allocations: 148.3 kB / 358 MB, free: 12.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.826e-05/0.1217, allocations: 90.73 kB / 358.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.1218, allocations: 49.7 kB / 358.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001996/0.122, allocations: 338.8 kB / 358.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000221/0.1222, allocations: 83.94 kB / 358.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/0.1225, allocations: 123.9 kB / 358.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004621/0.1229, allocations: 216.6 kB / 358.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.1229, allocations: 3.984 kB / 358.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006177/0.1236, allocations: 275.4 kB / 359.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.1236, allocations: 4 kB / 359.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.1236, allocations: 0 / 359.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.483e-05/0.1236, allocations: 4 kB / 359.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003004/0.124, allocations: 63.89 kB / 359.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.659e-06/0.124, allocations: 0 / 359.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.1241, allocations: 19.92 kB / 359.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.528e-05/0.1242, allocations: 11.98 kB / 359.3 MB, free: 10.85 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.0001699/0.1243, allocations: 141.8 kB / 359.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.343e-05/0.1244, allocations: 23.72 kB / 359.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006348/0.125, allocations: 292.3 kB / 359.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1251, allocations: 4 kB / 359.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1251, allocations: 0 / 359.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.884e-06/0.1251, allocations: 3.938 kB / 359.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.1262, allocations: 0.6835 MB / 360.4 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.1262, allocations: 4 kB / 360.4 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002886/0.1265, allocations: 51.91 kB / 360.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.1265, allocations: 3.938 kB / 360.5 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.249e-05/0.1266, allocations: 12.03 kB / 360.5 MB, free: 9.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.1266, allocations: 3.938 kB / 360.5 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.1266, allocations: 4 kB / 360.5 MB, free: 9.566 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008144/0.1274, allocations: 484.3 kB / 361 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.1275, allocations: 116.9 kB / 361.1 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.846e-05/0.1276, allocations: 16.12 kB / 361.1 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001525/0.1277, allocations: 15.98 kB / 361.1 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.087e-05/0.1278, allocations: 15.97 kB / 361.1 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/0.1278, allocations: 12 kB / 361.1 MB, free: 8.879 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001617/0.128, allocations: 156.5 kB / 361.3 MB, free: 8.727 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.128, allocations: 3.938 kB / 361.3 MB, free: 8.723 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003223/0.1283, allocations: 44 kB / 361.3 MB, free: 8.68 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.00123/0.1296, allocations: 1.039 MB / 362.4 MB, free: 7.613 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006208/0.1302, allocations: 256.1 kB / 362.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1302, allocations: 0 / 362.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002822/0.1305, allocations: 115.9 kB / 362.7 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003823/0.1309, allocations: 24.38 kB / 362.8 MB, free: 7.227 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003949/0.1349, allocations: 2.695 MB / 365.5 MB, free: 4.426 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004345/0.1353, allocations: 0.7678 MB / 366.2 MB, free: 3.633 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001671/0.1355, allocations: 41.92 kB / 366.3 MB, free: 3.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001472/0.1357, allocations: 87.39 kB / 366.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of SimCode: time 9.12e-07/0.1357, allocations: 0 / 366.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1711/0.3068, allocations: 4.454 MB / 370.8 MB, free: 25.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.406/7.713, allocations: 12.77 kB / 370.8 MB, free: 25.8 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 5e-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.csv","/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