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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 72.08 kB / 21.69 MB, free: 2.867 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 141.9 kB / 24.97 MB, free: 8.32 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9355/0.9355, allocations: 173.3 MB / 201.5 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] 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=20000,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=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.482e-06/1.482e-06, allocations: 0 / 268.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.751e-05/2.899e-05, allocations: 2.312 kB / 268.1 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003071/0.0031, allocations: 2.16 MB / 270.2 MB, free: 4.559 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.004216, allocations: 0.6891 MB / 270.9 MB, free: 3.867 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003193/0.007409, allocations: 7.938 kB / 270.9 MB, free: 3.859 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000183/0.007592, allocations: 47.52 kB / 271 MB, free: 3.812 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001961/0.007788, allocations: 55.47 kB / 271 MB, free: 3.758 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.008075, allocations: 95.75 kB / 271.1 MB, free: 3.664 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000283/0.008358, allocations: 243.6 kB / 271.3 MB, free: 3.426 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.008553, allocations: 76 kB / 271.4 MB, free: 3.352 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001924/0.008746, allocations: 135.6 kB / 271.6 MB, free: 3.219 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001301/0.008876, allocations: 87.7 kB / 271.6 MB, free: 3.133 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.321e-05/0.008909, allocations: 16 kB / 271.7 MB, free: 3.117 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.429e-05/0.008983, allocations: 24 kB / 271.7 MB, free: 3.094 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.95e-05/0.009053, allocations: 59.8 kB / 271.7 MB, free: 3.035 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.223e-05/0.009125, allocations: 71.77 kB / 271.8 MB, free: 2.965 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002632/0.009388, allocations: 179.2 kB / 272 MB, free: 2.789 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.009391, allocations: 0 / 272 MB, free: 2.789 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.009392, allocations: 0 / 272 MB, free: 2.789 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.009397, allocations: 0 / 272 MB, free: 2.789 MB / 250.7 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.000715/0.01011, allocations: 0.5662 MB / 272.5 MB, free: 2.188 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.01015, allocations: 8.031 kB / 272.6 MB, free: 2.18 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003103/0.01325, allocations: 52.69 kB / 272.6 MB, free: 2.129 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002727/0.01353, allocations: 203.9 kB / 272.8 MB, free: 1.902 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.138e-05/0.01356, allocations: 20.86 kB / 272.8 MB, free: 1.883 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.137e-05/0.0136, allocations: 24.31 kB / 272.9 MB, free: 1.859 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003789/0.01398, allocations: 224.9 kB / 273.1 MB, free: 1.617 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.01399, allocations: 3.938 kB / 273.1 MB, free: 1.613 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/0.01401, allocations: 4 kB / 273.1 MB, free: 1.609 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.781e-05/0.01405, allocations: 16.48 kB / 273.1 MB, free: 1.594 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002053/0.01426, allocations: 90.92 kB / 273.2 MB, free: 1.504 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009285/0.01518, allocations: 0.8156 MB / 274 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002156/0.0154, allocations: 115 kB / 274.1 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.05e-05/0.01549, allocations: 47.67 kB / 274.2 MB, free: 480 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.182e-05/0.01555, allocations: 11.98 kB / 274.2 MB, free: 468 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.01558, allocations: 41.77 kB / 274.2 MB, free: 416 kB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 2.685e-06/0.01558, allocations: 3.984 kB / 274.2 MB, free: 412 kB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.003847/0.01943, allocations: 485.8 kB / 274.7 MB, free: 15.89 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.621e-05/0.01946, allocations: 55.41 kB / 274.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/0.01961, allocations: 238.8 kB / 275 MB, free: 15.57 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.01963, allocations: 29.7 kB / 275 MB, free: 15.54 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.995e-05/0.01972, allocations: 199.1 kB / 275.2 MB, free: 15.33 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.939e-05/0.01977, allocations: 83.28 kB / 275.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.232e-05/0.01983, allocations: 55.36 kB / 275.3 MB, free: 15.19 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.01996, allocations: 0.504 MB / 275.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.3e-05/0.02002, allocations: 31.98 kB / 275.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.094e-05/0.02011, allocations: 82.7 kB / 276 MB, free: 14.54 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001571/0.02027, allocations: 141.6 kB / 276.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.02027, allocations: 0 / 276.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002234/0.0205, allocations: 193.3 kB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.02051, allocations: 4 kB / 276.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.02052, allocations: 0 / 276.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.02053, allocations: 4 kB / 276.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001844/0.02072, allocations: 55.95 kB / 276.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.02072, allocations: 12 kB / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.395e-05/0.02078, allocations: 11.98 kB / 276.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.301e-05/0.02079, allocations: 8 kB / 276.4 MB, free: 14.1 MB / 266.7 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 8.869e-05/0.02088, allocations: 172.5 kB / 276.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.547e-05/0.02091, allocations: 31.86 kB / 276.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002761/0.02119, allocations: 198.9 kB / 276.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.02119, allocations: 4 kB / 276.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.0212, allocations: 3.984 kB / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.02121, allocations: 0 / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005466/0.02175, allocations: 0.552 MB / 277.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.02175, allocations: 0 / 277.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.02191, allocations: 55.91 kB / 277.4 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.02192, allocations: 4 kB / 277.4 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.02193, allocations: 4 kB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.02194, allocations: 4 kB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.02194, allocations: 0 / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003485/0.02229, allocations: 405.2 kB / 277.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.688e-05/0.02233, allocations: 35.88 kB / 277.8 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.703e-05/0.02236, allocations: 11.98 kB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.89e-05/0.02243, allocations: 8 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.858e-05/0.02248, allocations: 19.91 kB / 277.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.02249, allocations: 12.11 kB / 277.9 MB, free: 12.51 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.183e-05/0.02257, allocations: 177.4 kB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02257, allocations: 0 / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002008/0.02277, allocations: 44 kB / 278.1 MB, free: 12.29 MB / 266.7 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.0001455/0.02292, allocations: 107.1 kB / 278.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002156/0.02313, allocations: 143.5 kB / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.02313, allocations: 0 / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.757e-05/0.02322, allocations: 83.52 kB / 278.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002441/0.02347, allocations: 26.91 kB / 278.4 MB, free: 11.92 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.02447, allocations: 0.6026 MB / 279 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.767e-05/0.02454, allocations: 92.3 kB / 279.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.86e-05/0.02462, allocations: 45.89 kB / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.085e-05/0.02467, allocations: 20.5 kB / 279.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of SimCode: time 9.01e-07/0.02467, allocations: 4 kB / 279.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of Templates: time 0.004118/0.02879, allocations: 1.906 MB / 281.1 MB, free: 9.223 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0209998739883304]