Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001727/0.001727, allocations: 111.9 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002004/0.002004, allocations: 208.9 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.367/1.367, allocations: 230.4 MB / 255.4 MB, free: 14.97 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-beta.om/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=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.1.0-beta.om_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-beta.om_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 75.81 kB / 374.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1032, allocations: 53.3 MB / 428 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003488/0.1066, allocations: 2.227 MB / 430.3 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001274/0.1079, allocations: 0.7594 MB / 431 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.108, allocations: 3.938 kB / 431 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001789/0.1082, allocations: 47.52 kB / 431.1 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001924/0.1084, allocations: 43.59 kB / 431.1 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002873/0.1087, allocations: 103.5 kB / 431.2 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000297/0.109, allocations: 239.7 kB / 431.5 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001965/0.1092, allocations: 83.61 kB / 431.5 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002125/0.1094, allocations: 103.6 kB / 431.6 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001644/0.1096, allocations: 111.5 kB / 431.8 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.801e-05/0.1096, allocations: 16 kB / 431.8 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.381e-05/0.1097, allocations: 31.98 kB / 431.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.979e-05/0.1098, allocations: 59.77 kB / 431.9 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.1099, allocations: 107.3 kB / 432 MB, free: 500 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003153/0.1102, allocations: 246.8 kB / 432.2 MB, free: 252 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1102, allocations: 8 kB / 432.2 MB, free: 244 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1102, allocations: 0 / 432.2 MB, free: 244 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.1102, allocations: 0 / 432.2 MB, free: 244 kB / 350.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.2086/0.3188, allocations: 0.5495 MB / 432.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.3188, allocations: 9.688 kB / 432.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001611/0.319, allocations: 32.62 kB / 432.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003095/0.3193, allocations: 253.8 kB / 433.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.297e-05/0.3193, allocations: 18.53 kB / 433.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.147e-05/0.3194, allocations: 21.69 kB / 433.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005046/0.3199, allocations: 261.5 kB / 433.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.3199, allocations: 0.9062 kB / 433.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.3199, allocations: 16.56 kB / 433.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.002e-05/0.32, allocations: 10.06 kB / 433.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004614/0.3204, allocations: 193.1 kB / 433.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001039/0.3215, allocations: 0.8201 MB / 434.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003825/0.3218, allocations: 174.5 kB / 434.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000195/0.322, allocations: 102 kB / 434.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.412e-05/0.3221, allocations: 85.55 kB / 434.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.3222, allocations: 37.56 kB / 434.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.553e-06/0.3222, allocations: 0 / 434.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001409/0.3236, allocations: 0.728 MB / 435.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.155e-05/0.3236, allocations: 54.09 kB / 435.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001802/0.3238, allocations: 218.3 kB / 435.8 MB, free: 9.949 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.3238, allocations: 30.3 kB / 435.8 MB, free: 9.918 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.657e-05/0.3239, allocations: 151.7 kB / 435.9 MB, free: 9.816 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.228e-05/0.3239, allocations: 85.56 kB / 436 MB, free: 9.762 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.76e-05/0.324, allocations: 51.3 kB / 436.1 MB, free: 9.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.766e-05/0.3241, allocations: 332.8 kB / 436.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002006/0.3243, allocations: 82.2 kB / 436.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.3245, allocations: 127.5 kB / 436.6 MB, free: 9.398 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000396/0.3249, allocations: 216.3 kB / 436.8 MB, free: 9.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3249, allocations: 2.531 kB / 436.8 MB, free: 9.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005153/0.3254, allocations: 280.9 kB / 437.1 MB, free: 9.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.3254, allocations: 5.656 kB / 437.1 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.3254, allocations: 3.844 kB / 437.1 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.3254, allocations: 5.719 kB / 437.1 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002698/0.3257, allocations: 55.66 kB / 437.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.3257, allocations: 4.906 kB / 437.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/0.3258, allocations: 20.97 kB / 437.2 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.3259, allocations: 9.906 kB / 437.2 MB, free: 9.234 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.0001012/0.326, allocations: 144.1 kB / 437.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.858e-05/0.326, allocations: 24.5 kB / 437.4 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005638/0.3266, allocations: 289.6 kB / 437.6 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3266, allocations: 3.5 kB / 437.7 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3266, allocations: 2.625 kB / 437.7 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.3266, allocations: 3.297 kB / 437.7 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009782/0.3276, allocations: 0.6888 MB / 438.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3276, allocations: 2 kB / 438.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002872/0.3279, allocations: 59.48 kB / 438.4 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.3279, allocations: 1.406 kB / 438.4 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.149e-05/0.3279, allocations: 7.609 kB / 438.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.738e-06/0.3279, allocations: 3.031 kB / 438.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.3279, allocations: 8.438 kB / 438.4 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000796/0.3287, allocations: 481.2 kB / 438.9 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.305e-05/0.3288, allocations: 117.2 kB / 439 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.3288, allocations: 9.344 kB / 439 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.329, allocations: 14.09 kB / 439 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.424e-05/0.329, allocations: 23.22 kB / 439.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.329, allocations: 6.797 kB / 439.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001293/0.3292, allocations: 161.5 kB / 439.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3292, allocations: 0 / 439.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003037/0.3295, allocations: 47.33 kB / 439.3 MB, free: 8.023 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.000155/0.3296, allocations: 106.4 kB / 439.4 MB, free: 7.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005251/0.3302, allocations: 218.6 kB / 439.6 MB, free: 7.875 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.3302, allocations: 1.188 kB / 439.6 MB, free: 7.875 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002327/0.3304, allocations: 114.6 kB / 439.7 MB, free: 7.852 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.3307, allocations: 27.2 kB / 439.7 MB, free: 7.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.3318, allocations: 0.7233 MB / 440.4 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00023/0.332, allocations: 0.7597 MB / 441.2 MB, free: 6.656 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.252e-05/0.3321, allocations: 32.36 kB / 441.2 MB, free: 6.641 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3321, allocations: 1.188 kB / 441.2 MB, free: 6.641 MB / 350.1 MB Notification: Performance of Templates: time 0.005957/0.338, allocations: 2.877 MB / 444.1 MB, free: 6.395 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.2179628510493785]