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: 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_trunk_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_trunk_Modelica.Blocks.Examples.SinCosEncoder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002039/0.002039, allocations: 106.6 kB / 18.45 MB, free: 4.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00275/0.00275, allocations: 213.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.235/2.235, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002119/0.002119, allocations: 59.89 kB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4378/0.4399, allocations: 50.54 MB / 409.9 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.006346/0.4463, allocations: 2.202 MB / 412.1 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002275/0.4487, allocations: 0.7477 MB / 412.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000321/0.449, allocations: 8 kB / 412.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003254/0.4494, allocations: 51.45 kB / 412.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003815/0.4498, allocations: 35.66 kB / 413 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005505/0.4504, allocations: 103.8 kB / 413.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005402/0.451, allocations: 235.6 kB / 413.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004141/0.4514, allocations: 115.6 kB / 413.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003711/0.4518, allocations: 99.56 kB / 413.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003093/0.4521, allocations: 111.5 kB / 413.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.415e-05/0.4522, allocations: 19.94 kB / 413.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001632/0.4524, allocations: 39.98 kB / 413.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001275/0.4525, allocations: 55.83 kB / 413.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001918/0.4527, allocations: 107.3 kB / 413.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005352/0.4533, allocations: 250.7 kB / 414.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.4533, allocations: 0 / 414.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.4533, allocations: 0 / 414.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.905e-05/0.4533, allocations: 0 / 414.1 MB, free: 13.47 MB / 334.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.001582/0.4549, allocations: 0.551 MB / 414.6 MB, free: 12.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.835e-05/0.455, allocations: 8.031 kB / 414.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002222/0.4552, allocations: 32.56 kB / 414.7 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005141/0.4558, allocations: 255.8 kB / 414.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.725e-05/0.4558, allocations: 12.81 kB / 414.9 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.426e-05/0.4559, allocations: 20.38 kB / 415 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007948/0.4567, allocations: 270.9 kB / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/0.4567, allocations: 0 / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.067e-05/0.4568, allocations: 8 kB / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.245e-05/0.4568, allocations: 12.44 kB / 415.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007179/0.4576, allocations: 197.5 kB / 415.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001877/0.4595, allocations: 0.8146 MB / 416.2 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005954/0.4601, allocations: 190.3 kB / 416.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003438/0.4605, allocations: 108.8 kB / 416.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000159/0.4606, allocations: 81.11 kB / 416.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.696e-05/0.4607, allocations: 42.88 kB / 416.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 4.088e-06/0.4607, allocations: 0 / 416.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.002335/0.4631, allocations: 0.7267 MB / 417.4 MB, free: 9.918 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.565e-05/0.4631, allocations: 55.41 kB / 417.4 MB, free: 9.852 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003472/0.4635, allocations: 212.9 kB / 417.7 MB, free: 9.633 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.08e-05/0.4636, allocations: 29.7 kB / 417.7 MB, free: 9.598 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.4637, allocations: 148.4 kB / 417.8 MB, free: 9.449 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.4638, allocations: 86.8 kB / 417.9 MB, free: 9.363 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.464, allocations: 53.69 kB / 418 MB, free: 9.305 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.4642, allocations: 330.8 kB / 418.3 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003348/0.4645, allocations: 87.94 kB / 418.4 MB, free: 8.887 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003542/0.4649, allocations: 127.3 kB / 418.5 MB, free: 8.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000681/0.4656, allocations: 214.5 kB / 418.7 MB, free: 8.531 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.4656, allocations: 4 kB / 418.7 MB, free: 8.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008906/0.4665, allocations: 273.1 kB / 419 MB, free: 8.254 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.933e-05/0.4666, allocations: 10.97 kB / 419 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.4666, allocations: 64 / 419 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.897e-05/0.4666, allocations: 12.06 kB / 419 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004656/0.4671, allocations: 63.89 kB / 419.1 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.4671, allocations: 7.922 kB / 419.1 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002252/0.4674, allocations: 15.98 kB / 419.1 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.323e-05/0.4674, allocations: 8 kB / 419.1 MB, free: 8.141 MB / 334.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.0002242/0.4676, allocations: 149.6 kB / 419.2 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.832e-05/0.4678, allocations: 19.72 kB / 419.3 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001019/0.4688, allocations: 303.1 kB / 419.6 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.4688, allocations: 4 kB / 419.6 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/0.4688, allocations: 0 / 419.6 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.4688, allocations: 3.984 kB / 419.6 MB, free: 7.656 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00182/0.4707, allocations: 0.6791 MB / 420.2 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.4707, allocations: 0 / 420.2 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004628/0.4712, allocations: 55.91 kB / 420.3 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.026e-05/0.4712, allocations: 0 / 420.3 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.207e-05/0.4713, allocations: 15.97 kB / 420.3 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.035e-05/0.4713, allocations: 3.938 kB / 420.3 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4713, allocations: 0 / 420.3 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/0.4726, allocations: 489.8 kB / 420.8 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001942/0.4728, allocations: 116.9 kB / 420.9 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.247e-05/0.4729, allocations: 4 kB / 420.9 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002746/0.4732, allocations: 19.92 kB / 420.9 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.275e-05/0.4733, allocations: 15.92 kB / 420.9 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-05/0.4734, allocations: 11.98 kB / 421 MB, free: 6.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002448/0.4736, allocations: 152.5 kB / 421.1 MB, free: 6.012 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4736, allocations: 4 kB / 421.1 MB, free: 6.008 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006423/0.4743, allocations: 48 kB / 421.2 MB, free: 5.961 MB / 334.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.0002619/0.4746, allocations: 107.2 kB / 421.3 MB, free: 5.848 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008348/0.4754, allocations: 224 kB / 421.5 MB, free: 5.629 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.4754, allocations: 0 / 421.5 MB, free: 5.629 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003753/0.4758, allocations: 123.9 kB / 421.6 MB, free: 5.508 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000631/0.4765, allocations: 20.44 kB / 421.6 MB, free: 5.488 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00191/0.4784, allocations: 0.7107 MB / 422.3 MB, free: 4.746 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005299/0.4789, allocations: 0.7639 MB / 423.1 MB, free: 3.949 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.4791, allocations: 23.44 kB / 423.1 MB, free: 3.926 MB / 334.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4791, allocations: 3.938 kB / 423.1 MB, free: 3.922 MB / 334.1 MB Notification: Performance of Templates: time 0.009299/0.4884, allocations: 2.886 MB / 426 MB, free: 1.031 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.makefile (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 & ./Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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