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.0012/0.0012, allocations: 114.8 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001244/0.001244, allocations: 204 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 60.09 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3107, allocations: 50.54 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003303/0.314, allocations: 2.217 MB / 412.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.3153, allocations: 0.7439 MB / 412.9 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001242/0.3155, allocations: 0 / 412.9 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001892/0.3157, allocations: 51.47 kB / 412.9 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001828/0.3159, allocations: 39.66 kB / 413 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002975/0.3162, allocations: 107.7 kB / 413.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000279/0.3165, allocations: 239.7 kB / 413.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.3167, allocations: 111.6 kB / 413.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.3169, allocations: 107.5 kB / 413.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001414/0.3171, allocations: 103.5 kB / 413.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.62e-05/0.3171, allocations: 20 kB / 413.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.965e-05/0.3172, allocations: 35.98 kB / 413.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.991e-05/0.3173, allocations: 51.84 kB / 413.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.343e-05/0.3174, allocations: 119.3 kB / 413.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002756/0.3177, allocations: 246.7 kB / 414.1 MB, free: 13.4 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.3177, allocations: 0 / 414.1 MB, free: 13.4 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3177, allocations: 0 / 414.1 MB, free: 13.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.3177, allocations: 0 / 414.1 MB, free: 13.4 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.00082/0.3185, allocations: 0.5431 MB / 414.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.3186, allocations: 12.03 kB / 414.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.3187, allocations: 36.55 kB / 414.7 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002932/0.319, allocations: 247.8 kB / 414.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.873e-05/0.319, allocations: 20.8 kB / 415 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.25e-05/0.3191, allocations: 24.38 kB / 415 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004619/0.3196, allocations: 254.9 kB / 415.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.3196, allocations: 0 / 415.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.414e-05/0.3196, allocations: 12 kB / 415.2 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.005e-05/0.3197, allocations: 12.44 kB / 415.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004402/0.3201, allocations: 193.5 kB / 415.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.3212, allocations: 0.8263 MB / 416.3 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003441/0.3216, allocations: 182.4 kB / 416.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002053/0.3218, allocations: 104.8 kB / 416.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001082/0.3219, allocations: 89.09 kB / 416.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.322, allocations: 42.86 kB / 416.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.322, allocations: 0 / 416.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0014/0.3234, allocations: 0.7179 MB / 417.4 MB, free: 9.859 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.925e-05/0.3234, allocations: 59.41 kB / 417.4 MB, free: 9.789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001879/0.3236, allocations: 220.9 kB / 417.7 MB, free: 9.562 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.3236, allocations: 25.7 kB / 417.7 MB, free: 9.531 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.124e-05/0.3237, allocations: 156.3 kB / 417.8 MB, free: 9.375 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.649e-05/0.3238, allocations: 78.81 kB / 417.9 MB, free: 9.297 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.657e-05/0.3239, allocations: 49.7 kB / 418 MB, free: 9.242 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.324, allocations: 330.8 kB / 418.3 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/0.3242, allocations: 79.95 kB / 418.4 MB, free: 8.832 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002097/0.3244, allocations: 135.4 kB / 418.5 MB, free: 8.688 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003973/0.3248, allocations: 211.2 kB / 418.7 MB, free: 8.469 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.3248, allocations: 7.938 kB / 418.7 MB, free: 8.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005111/0.3253, allocations: 284.3 kB / 419 MB, free: 8.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.3254, allocations: 6.969 kB / 419 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.3254, allocations: 0 / 419 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.3254, allocations: 7.938 kB / 419 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002782/0.3257, allocations: 63.89 kB / 419.1 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.3257, allocations: 4 kB / 419.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.3258, allocations: 12.05 kB / 419.1 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.3259, allocations: 15.98 kB / 419.1 MB, free: 8.074 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.0001353/0.326, allocations: 145.7 kB / 419.2 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.055e-05/0.3261, allocations: 23.72 kB / 419.3 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000647/0.3267, allocations: 295.1 kB / 419.6 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.3267, allocations: 3.984 kB / 419.6 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3268, allocations: 4 kB / 419.6 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.3269, allocations: 116.8 kB / 419.7 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.449e-05/0.3269, allocations: 4 kB / 419.7 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.3271, allocations: 19.92 kB / 419.7 MB, free: 7.441 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.501e-05/0.3271, allocations: 19.97 kB / 419.7 MB, free: 7.422 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007354/0.3279, allocations: 372.6 kB / 420.1 MB, free: 7.051 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008386/0.3287, allocations: 0.558 MB / 420.6 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000215/0.329, allocations: 120.2 kB / 420.8 MB, free: 6.355 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001189/0.3291, allocations: 156.5 kB / 420.9 MB, free: 6.203 MB / 334.1 MB Notification: Performance of Backend: time 2.61e-07/0.3291, allocations: 0 / 420.9 MB, free: 6.203 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006231/0.3297, allocations: 226 kB / 421.1 MB, free: 5.977 MB / 334.1 MB Notification: Performance of SimCode: time 0.001252/0.331, allocations: 1.054 MB / 422.2 MB, free: 4.879 MB / 334.1 MB Notification: Performance of Templates: time 0.00567/0.3367, allocations: 2.425 MB / 424.6 MB, free: 2.457 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