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: translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 115 kB / 16.63 MB, free: 6.812 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.001112/0.001112, allocations: 186 kB / 17.55 MB, free: 5.934 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.382/1.382, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0011/0.0011, allocations: 50.02 kB / 300.1 MB, free: 6.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1134, allocations: 49.45 MB / 349.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003515/0.117, allocations: 2.241 MB / 351.8 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.1183, allocations: 0.6816 MB / 352.5 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000227/0.1186, allocations: 7.938 kB / 352.5 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002265/0.1188, allocations: 35.66 kB / 352.5 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002336/0.1191, allocations: 31.78 kB / 352.6 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003629/0.1195, allocations: 87.86 kB / 352.6 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003225/0.1198, allocations: 235.6 kB / 352.9 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000249/0.1201, allocations: 115.6 kB / 353 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001748/0.1202, allocations: 87.64 kB / 353.1 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000164/0.1204, allocations: 107.5 kB / 353.2 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.29e-05/0.1205, allocations: 19.98 kB / 353.2 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.13e-05/0.1206, allocations: 31.98 kB / 353.2 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.303e-05/0.1206, allocations: 55.78 kB / 353.3 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.1207, allocations: 119.3 kB / 353.4 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002837/0.121, allocations: 227.4 kB / 353.6 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1211, allocations: 0 / 353.6 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1211, allocations: 0 / 353.6 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.1211, allocations: 0 / 353.6 MB, free: 0.6758 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.0008744/0.122, allocations: 0.5457 MB / 354.2 MB, free: 84 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.122, allocations: 15.89 kB / 354.2 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.627e-05/0.1221, allocations: 32.56 kB / 354.2 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003604/0.1225, allocations: 252.4 kB / 354.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.8e-05/0.1225, allocations: 16.81 kB / 354.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.248e-05/0.1226, allocations: 28.11 kB / 354.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005534/0.1231, allocations: 258.5 kB / 354.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.1232, allocations: 0 / 354.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.1e-05/0.1232, allocations: 12 kB / 354.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.308e-05/0.1232, allocations: 12.42 kB / 354.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004392/0.1237, allocations: 197.5 kB / 355 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.1248, allocations: 0.8185 MB / 355.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003526/0.1252, allocations: 181.3 kB / 356 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000213/0.1254, allocations: 117 kB / 356.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000113/0.1256, allocations: 89.03 kB / 356.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.1256, allocations: 38.56 kB / 356.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.383e-06/0.1256, allocations: 0 / 356.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001434/0.127, allocations: 0.7198 MB / 356.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.595e-05/0.1271, allocations: 51.41 kB / 357 MB, free: 13.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002074/0.1273, allocations: 217 kB / 357.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.1273, allocations: 29.7 kB / 357.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.97e-05/0.1274, allocations: 152.4 kB / 357.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.828e-05/0.1275, allocations: 86.8 kB / 357.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.557e-05/0.1276, allocations: 49.7 kB / 357.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.1277, allocations: 342.8 kB / 357.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.1279, allocations: 79.94 kB / 357.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002056/0.1282, allocations: 119.4 kB / 358 MB, free: 11.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003921/0.1286, allocations: 218.8 kB / 358.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1286, allocations: 4 kB / 358.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005034/0.1291, allocations: 277.1 kB / 358.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.1291, allocations: 8 kB / 358.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.1291, allocations: 0 / 358.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.1291, allocations: 0 / 358.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000302/0.1294, allocations: 59.89 kB / 358.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.294e-05/0.1295, allocations: 4 kB / 358.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.1296, allocations: 15.98 kB / 358.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.286e-05/0.1296, allocations: 15.92 kB / 358.6 MB, free: 11.35 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.0001249/0.1298, allocations: 145.8 kB / 358.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.81e-05/0.1298, allocations: 19.72 kB / 358.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005857/0.1304, allocations: 295.2 kB / 359.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.1304, allocations: 0 / 359.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.1304, allocations: 4 kB / 359.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.1305, allocations: 0 / 359.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001123/0.1316, allocations: 0.6864 MB / 359.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.1316, allocations: 0 / 359.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002851/0.1319, allocations: 63.89 kB / 359.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.1319, allocations: 0 / 359.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.335e-05/0.1319, allocations: 15.88 kB / 359.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1319, allocations: 7.969 kB / 359.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1319, allocations: 0 / 359.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007812/0.1327, allocations: 484.4 kB / 360.3 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001554/0.1329, allocations: 112.9 kB / 360.4 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.705e-05/0.1329, allocations: 7.938 kB / 360.4 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001592/0.1331, allocations: 19.98 kB / 360.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.339e-05/0.1332, allocations: 19.97 kB / 360.5 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.1332, allocations: 4.188 kB / 360.5 MB, free: 9.375 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000227/0.1334, allocations: 160.5 kB / 360.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1335, allocations: 4 kB / 360.6 MB, free: 9.215 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003222/0.1338, allocations: 48 kB / 360.7 MB, free: 9.168 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.000193/0.134, allocations: 115.1 kB / 360.8 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005783/0.1346, allocations: 252.4 kB / 361.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.1346, allocations: 0 / 361.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002368/0.1348, allocations: 127.8 kB / 361.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003758/0.1352, allocations: 34.31 kB / 361.2 MB, free: 8.648 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/0.1366, allocations: 0.7828 MB / 362 MB, free: 7.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005079/0.1372, allocations: 0.7678 MB / 362.8 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001553/0.1373, allocations: 41.91 kB / 362.8 MB, free: 7.008 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.454e-05/0.1374, allocations: 27.42 kB / 362.8 MB, free: 6.98 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1374, allocations: 0 / 362.8 MB, free: 6.98 MB / 302.1 MB Notification: Performance of Templates: time 0.005734/0.1432, allocations: 1.966 MB / 364.8 MB, free: 5.016 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.makefile (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins/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