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.00138/0.00138, allocations: 115.5 kB / 17.69 MB, free: 5.438 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.001248/0.001248, allocations: 192 kB / 18.63 MB, free: 4.508 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.316/1.316, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009326/0.0009326, allocations: 49.95 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1032, allocations: 49.44 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003387/0.1066, allocations: 2.191 MB / 353.7 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001062/0.1077, allocations: 0.6972 MB / 354.4 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.1078, allocations: 4 kB / 354.4 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001603/0.108, allocations: 47.47 kB / 354.4 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001692/0.1082, allocations: 39.66 kB / 354.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002517/0.1084, allocations: 101.9 kB / 354.6 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000251/0.1087, allocations: 243.6 kB / 354.8 MB, free: 380 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002083/0.1089, allocations: 107.6 kB / 354.9 MB, free: 268 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.109, allocations: 99.56 kB / 355 MB, free: 168 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001402/0.1092, allocations: 107.5 kB / 355.1 MB, free: 60 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.234e-05/0.1092, allocations: 20 kB / 355.1 MB, free: 40 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.734e-05/0.1093, allocations: 27.98 kB / 355.2 MB, free: 12 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.784e-05/0.1094, allocations: 55.78 kB / 355.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.267e-05/0.1095, allocations: 107.3 kB / 355.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002607/0.1098, allocations: 243 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.1098, allocations: 0 / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1098, allocations: 4 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.1098, allocations: 3.938 kB / 355.6 MB, free: 15.61 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.0008043/0.1106, allocations: 0.5496 MB / 356.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.1107, allocations: 11.89 kB / 356.1 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.047e-05/0.1107, allocations: 32.56 kB / 356.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/0.111, allocations: 260.1 kB / 356.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.1111, allocations: 16.81 kB / 356.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.552e-05/0.1111, allocations: 32.06 kB / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004301/0.1116, allocations: 254.7 kB / 356.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.1116, allocations: 0 / 356.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/0.1116, allocations: 8 kB / 356.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.349e-05/0.1116, allocations: 12.44 kB / 356.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000401/0.112, allocations: 197.5 kB / 356.9 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.1131, allocations: 0.8223 MB / 357.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/0.1134, allocations: 174.4 kB / 357.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001939/0.1136, allocations: 109.2 kB / 358 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.769e-05/0.1137, allocations: 89.03 kB / 358.1 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.286e-05/0.1138, allocations: 34.56 kB / 358.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.473e-06/0.1138, allocations: 8 kB / 358.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001367/0.1152, allocations: 0.7248 MB / 358.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.801e-05/0.1152, allocations: 51.41 kB / 358.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001861/0.1154, allocations: 213 kB / 359.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.1154, allocations: 33.7 kB / 359.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.1155, allocations: 152.3 kB / 359.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.585e-05/0.1156, allocations: 82.81 kB / 359.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.45e-05/0.1157, allocations: 49.7 kB / 359.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.1158, allocations: 338.8 kB / 359.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001856/0.116, allocations: 83.94 kB / 359.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002019/0.1162, allocations: 127.8 kB / 360 MB, free: 10.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003693/0.1166, allocations: 212.6 kB / 360.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.1166, allocations: 0 / 360.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004845/0.1171, allocations: 279.4 kB / 360.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.1171, allocations: 4 kB / 360.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.1171, allocations: 4 kB / 360.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.1172, allocations: 3.984 kB / 360.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002563/0.1174, allocations: 59.84 kB / 360.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.1175, allocations: 7.984 kB / 360.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.1176, allocations: 15.98 kB / 360.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.1176, allocations: 11.94 kB / 360.6 MB, free: 10.27 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.0001268/0.1177, allocations: 149.8 kB / 360.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.462e-05/0.1178, allocations: 19.72 kB / 360.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005608/0.1184, allocations: 288.4 kB / 361 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1184, allocations: 3.984 kB / 361 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1184, allocations: 3.938 kB / 361 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.1184, allocations: 4 kB / 361 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009449/0.1193, allocations: 0.6955 MB / 361.7 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1194, allocations: 0 / 361.7 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002691/0.1196, allocations: 55.97 kB / 361.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.1196, allocations: 0 / 361.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/0.1197, allocations: 15.92 kB / 361.8 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.1197, allocations: 0 / 361.8 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.1197, allocations: 8.031 kB / 361.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006848/0.1204, allocations: 485.4 kB / 362.3 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.812e-05/0.1205, allocations: 112.9 kB / 362.4 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.146e-05/0.1205, allocations: 7.938 kB / 362.4 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.1207, allocations: 19.98 kB / 362.4 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.972e-05/0.1207, allocations: 15.98 kB / 362.4 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.1208, allocations: 4 kB / 362.4 MB, free: 8.297 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001138/0.1209, allocations: 160.5 kB / 362.6 MB, free: 8.145 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1209, allocations: 0 / 362.6 MB, free: 8.145 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002845/0.1212, allocations: 44 kB / 362.6 MB, free: 8.102 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.0001516/0.1213, allocations: 115.1 kB / 362.8 MB, free: 7.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004666/0.1218, allocations: 227.7 kB / 363 MB, free: 7.758 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.1218, allocations: 4 kB / 363 MB, free: 7.754 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002093/0.122, allocations: 111.9 kB / 363.1 MB, free: 7.645 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.1224, allocations: 32.36 kB / 363.1 MB, free: 7.613 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009572/0.1233, allocations: 0.6871 MB / 363.8 MB, free: 6.898 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.1236, allocations: 0.76 MB / 364.6 MB, free: 6.105 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001126/0.1237, allocations: 57.83 kB / 364.6 MB, free: 6.051 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.049e-05/0.1238, allocations: 23.44 kB / 364.6 MB, free: 6.027 MB / 302.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1238, allocations: 0 / 364.6 MB, free: 6.027 MB / 302.1 MB Notification: Performance of Templates: time 0.005233/0.129, allocations: 2.02 MB / 366.7 MB, free: 4.008 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 -s gbode -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/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