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.001853/0.001853, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002164/0.002164, allocations: 210.6 kB / 24.47 MB, free: 3.977 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.534/1.534, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.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 0.001605/0.001605, allocations: 47.92 kB / 378.9 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2795, allocations: 53.38 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003499/0.283, allocations: 2.109 MB / 434.4 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.2843, allocations: 0.7166 MB / 435.2 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.2845, allocations: 7.938 kB / 435.2 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001775/0.2846, allocations: 39.53 kB / 435.2 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001927/0.2848, allocations: 47.58 kB / 435.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003023/0.2851, allocations: 99.77 kB / 435.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003021/0.2854, allocations: 247.6 kB / 435.6 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002005/0.2856, allocations: 79.81 kB / 435.7 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002086/0.2858, allocations: 99.62 kB / 435.8 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001684/0.286, allocations: 107.5 kB / 435.9 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.056e-05/0.2861, allocations: 20 kB / 435.9 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.989e-05/0.2861, allocations: 32 kB / 435.9 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.693e-05/0.2862, allocations: 63.77 kB / 436 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.2863, allocations: 87.45 kB / 436.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003592/0.2867, allocations: 249.7 kB / 436.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.83e-06/0.2867, allocations: 4 kB / 436.3 MB, free: 2.742 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2867, allocations: 0 / 436.3 MB, free: 2.742 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.2867, allocations: 3.938 kB / 436.3 MB, free: 2.738 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.0009872/0.2877, allocations: 492.1 kB / 436.8 MB, free: 2.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.2877, allocations: 12.03 kB / 436.8 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/0.2879, allocations: 28.8 kB / 436.8 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003245/0.2882, allocations: 195.3 kB / 437 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.745e-05/0.2882, allocations: 16.81 kB / 437 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.684e-05/0.2883, allocations: 20.38 kB / 437.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000523/0.2888, allocations: 258.9 kB / 437.3 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.2888, allocations: 3.984 kB / 437.3 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.383e-05/0.2888, allocations: 12 kB / 437.3 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.811e-05/0.2889, allocations: 12.44 kB / 437.3 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000471/0.2893, allocations: 189.6 kB / 437.5 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.2905, allocations: 0.7013 MB / 438.2 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000388/0.2909, allocations: 176.5 kB / 438.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002325/0.2912, allocations: 100.8 kB / 438.5 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.838e-05/0.2912, allocations: 7.938 kB / 438.5 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.2913, allocations: 34.88 kB / 438.5 MB, free: 400 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.463e-06/0.2913, allocations: 4 kB / 438.5 MB, free: 396 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001547/0.2928, allocations: 0.6693 MB / 439.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.2928, allocations: 51.41 kB / 439.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.293, allocations: 187.8 kB / 439.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/0.2931, allocations: 29.7 kB / 439.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.2932, allocations: 148.5 kB / 439.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.284e-05/0.2933, allocations: 87.22 kB / 439.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.39e-05/0.2933, allocations: 53.69 kB / 439.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.2935, allocations: 330.8 kB / 440.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002116/0.2937, allocations: 79.94 kB / 440.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002407/0.294, allocations: 124.1 kB / 440.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004394/0.2944, allocations: 215.2 kB / 440.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.2944, allocations: 4 kB / 440.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005615/0.295, allocations: 278.8 kB / 440.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.295, allocations: 7.984 kB / 440.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.295, allocations: 4 kB / 440.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.295, allocations: 0 / 440.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002944/0.2953, allocations: 55.95 kB / 440.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.2953, allocations: 7.938 kB / 440.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.2954, allocations: 20.05 kB / 440.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.199e-05/0.2955, allocations: 8 kB / 440.9 MB, free: 13.95 MB / 350.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.0001481/0.2956, allocations: 141.8 kB / 441 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.12e-05/0.2957, allocations: 19.86 kB / 441 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000637/0.2963, allocations: 294.9 kB / 441.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.2963, allocations: 7.984 kB / 441.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.2963, allocations: 0 / 441.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.197e-06/0.2963, allocations: 0 / 441.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001099/0.2974, allocations: 0.5968 MB / 441.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2974, allocations: 0 / 441.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000298/0.2977, allocations: 55.97 kB / 442 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.569e-05/0.2977, allocations: 4 kB / 442 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.2977, allocations: 8 kB / 442 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.2977, allocations: 3.938 kB / 442 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.2977, allocations: 3.984 kB / 442 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008699/0.2986, allocations: 494.3 kB / 442.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.723e-05/0.2987, allocations: 35.91 kB / 442.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.342e-05/0.2987, allocations: 4 kB / 442.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/0.2989, allocations: 11.98 kB / 442.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.018e-05/0.299, allocations: 23.89 kB / 442.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.299, allocations: 12 kB / 442.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001313/0.2991, allocations: 141.5 kB / 442.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2991, allocations: 0 / 442.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000312/0.2994, allocations: 47.94 kB / 442.7 MB, free: 11.99 MB / 350.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.0001531/0.2996, allocations: 107.1 kB / 442.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005346/0.3001, allocations: 212.5 kB / 443.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3001, allocations: 0 / 443.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002509/0.3004, allocations: 115.8 kB / 443.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003328/0.3007, allocations: 39.03 kB / 443.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001155/0.3018, allocations: 0.6893 MB / 443.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001665/0.302, allocations: 158.8 kB / 444.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000133/0.3021, allocations: 45.91 kB / 444.1 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.079e-05/0.3022, allocations: 23.42 kB / 444.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3022, allocations: 4 kB / 444.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of Templates: time 0.00588/0.3081, allocations: 2.108 MB / 446.2 MB, free: 8.453 MB / 350.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/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.83177180000348]