Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 82.16 kB / 20.68 MB, free: 1.039 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 164.6 kB / 23.95 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.554/1.554, allocations: 177.1 MB / 204.3 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder") translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.679e-05/3.855e-05, allocations: 3.469 kB / 325.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003856/0.003894, allocations: 2.129 MB / 327.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001652/0.005546, allocations: 0.7146 MB / 327.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001384/0.005684, allocations: 6.656 kB / 327.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002172/0.005902, allocations: 49.77 kB / 328 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002261/0.006128, allocations: 43.97 kB / 328 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003624/0.00649, allocations: 104.3 kB / 328.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003706/0.006861, allocations: 242 kB / 328.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002681/0.007129, allocations: 84.27 kB / 328.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003476/0.007476, allocations: 131 kB / 328.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001966/0.007673, allocations: 89.88 kB / 328.6 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.873e-05/0.007712, allocations: 17.09 kB / 328.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.007819, allocations: 25.69 kB / 328.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.007923, allocations: 62.31 kB / 328.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.008032, allocations: 70.2 kB / 328.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005218/0.008554, allocations: 252.2 kB / 329.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.008559, allocations: 4 kB / 329.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.00856, allocations: 4 kB / 329.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.008568, allocations: 5.641 kB / 329.1 MB, free: 14.05 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.001017/0.009586, allocations: 474.4 kB / 329.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.009626, allocations: 8.25 kB / 329.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.009779, allocations: 33.86 kB / 329.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003372/0.01012, allocations: 201.1 kB / 329.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.259e-05/0.01015, allocations: 21.56 kB / 329.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.669e-05/0.01021, allocations: 22.66 kB / 329.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006026/0.01081, allocations: 257.8 kB / 330.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.01083, allocations: 0.7031 kB / 330.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.764e-05/0.01085, allocations: 10.88 kB / 330.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.389e-05/0.01089, allocations: 15.44 kB / 330.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005105/0.0114, allocations: 191.8 kB / 330.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.01266, allocations: 0.6991 MB / 331 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004446/0.01311, allocations: 170.7 kB / 331.1 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002454/0.01335, allocations: 104.6 kB / 331.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.833e-05/0.01343, allocations: 5.531 kB / 331.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.571e-05/0.01347, allocations: 40.77 kB / 331.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.01347, allocations: 0 / 331.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001654/0.01512, allocations: 0.6526 MB / 331.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.281e-05/0.01518, allocations: 54.09 kB / 332 MB, free: 12.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002303/0.01541, allocations: 192.3 kB / 332.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.16e-05/0.01544, allocations: 31.73 kB / 332.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.01557, allocations: 151.1 kB / 332.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.864e-05/0.01565, allocations: 89.27 kB / 332.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.902e-05/0.01574, allocations: 55.7 kB / 332.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.01592, allocations: 332.5 kB / 332.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002204/0.01614, allocations: 80.61 kB / 332.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002546/0.0164, allocations: 125.5 kB / 333 MB, free: 11.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005034/0.0169, allocations: 216.7 kB / 333.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.0169, allocations: 7.938 kB / 333.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005892/0.01749, allocations: 279.7 kB / 333.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.01751, allocations: 5.344 kB / 333.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.01752, allocations: 1.062 kB / 333.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.01754, allocations: 2.188 kB / 333.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002983/0.01784, allocations: 59.67 kB / 333.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.01785, allocations: 3.031 kB / 333.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001432/0.01799, allocations: 19.67 kB / 333.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.01801, allocations: 9.594 kB / 333.6 MB, free: 10.86 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.0001607/0.01817, allocations: 146.8 kB / 333.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.501e-05/0.01823, allocations: 25.2 kB / 333.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00067/0.0189, allocations: 285.3 kB / 334.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.0189, allocations: 3.969 kB / 334.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.01891, allocations: 0 / 334.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.01892, allocations: 3.984 kB / 334.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001136/0.02005, allocations: 0.593 MB / 334.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.02006, allocations: 0 / 334.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002977/0.02035, allocations: 58.19 kB / 334.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.02036, allocations: 1.156 kB / 334.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/0.02038, allocations: 10.58 kB / 334.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.02039, allocations: 1.281 kB / 334.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.02039, allocations: 1.281 kB / 334.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.02159, allocations: 488.7 kB / 335.2 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.338e-05/0.02168, allocations: 39.97 kB / 335.3 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.225e-05/0.02172, allocations: 10.23 kB / 335.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.02188, allocations: 9.094 kB / 335.3 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.497e-05/0.02196, allocations: 19.64 kB / 335.3 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.958e-05/0.02198, allocations: 14.16 kB / 335.3 MB, free: 9.707 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001541/0.02214, allocations: 140.2 kB / 335.4 MB, free: 9.602 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.02214, allocations: 0 / 335.4 MB, free: 9.602 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000328/0.02247, allocations: 49.34 kB / 335.5 MB, free: 9.59 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.0002021/0.02267, allocations: 104 kB / 335.6 MB, free: 9.496 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005623/0.02323, allocations: 214.8 kB / 335.8 MB, free: 9.406 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.02323, allocations: 0 / 335.8 MB, free: 9.406 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002578/0.02349, allocations: 113.5 kB / 335.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003625/0.02385, allocations: 39.61 kB / 336 MB, free: 9.328 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001201/0.02505, allocations: 0.5956 MB / 336.5 MB, free: 8.883 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001804/0.02524, allocations: 158.8 kB / 336.7 MB, free: 8.766 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001235/0.02536, allocations: 43.19 kB / 336.7 MB, free: 8.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.856e-05/0.02544, allocations: 22.31 kB / 336.8 MB, free: 8.742 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.02544, allocations: 5.219 kB / 336.8 MB, free: 8.738 MB / 302.1 MB Notification: Performance of Templates: time 0.006171/0.03161, allocations: 1.818 MB / 338.6 MB, free: 7.266 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.813567128032446]