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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001533/0.001533, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.002139/0.002139, allocations: 213.7 kB / 24.5 MB, free: 4.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.524/1.524, allocations: 230.5 MB / 258.1 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] 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=20000,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=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 63.89 kB / 379 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2334, allocations: 53.41 MB / 432.4 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003977/0.2374, allocations: 2.237 MB / 434.7 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001487/0.2389, allocations: 0.7633 MB / 435.4 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001831/0.2391, allocations: 7.938 kB / 435.4 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002085/0.2393, allocations: 51.52 kB / 435.5 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002165/0.2395, allocations: 35.59 kB / 435.5 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003556/0.2399, allocations: 111.7 kB / 435.6 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003324/0.2402, allocations: 235.6 kB / 435.9 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002141/0.2404, allocations: 80.02 kB / 435.9 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002316/0.2407, allocations: 103.6 kB / 436 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001785/0.2408, allocations: 115.5 kB / 436.2 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.589e-05/0.2409, allocations: 16 kB / 436.2 MB, free: 3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.892e-05/0.241, allocations: 35.98 kB / 436.2 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.307e-05/0.241, allocations: 51.84 kB / 436.3 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.2411, allocations: 107.3 kB / 436.4 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00035/0.2415, allocations: 256 kB / 436.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.2415, allocations: 0 / 436.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.2415, allocations: 3.984 kB / 436.6 MB, free: 2.562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.2415, allocations: 4 kB / 436.6 MB, free: 2.559 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.0009035/0.2424, allocations: 489.3 kB / 437.1 MB, free: 2.051 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.2424, allocations: 8.031 kB / 437.1 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.2426, allocations: 36.73 kB / 437.1 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003019/0.2429, allocations: 186.7 kB / 437.3 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.033e-05/0.2429, allocations: 20.81 kB / 437.3 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.484e-05/0.243, allocations: 24.38 kB / 437.4 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004938/0.2435, allocations: 270.9 kB / 437.6 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.2435, allocations: 0 / 437.6 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.279e-05/0.2435, allocations: 4 kB / 437.6 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.018e-05/0.2435, allocations: 12.44 kB / 437.7 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004679/0.244, allocations: 193.6 kB / 437.8 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001225/0.2452, allocations: 0.7865 MB / 438.6 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003673/0.2456, allocations: 178.5 kB / 438.8 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002124/0.2458, allocations: 100.4 kB / 438.9 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.029e-05/0.2459, allocations: 11.98 kB / 438.9 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.2459, allocations: 38.81 kB / 438.9 MB, free: 100 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.312e-06/0.2459, allocations: 0 / 438.9 MB, free: 100 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001438/0.2473, allocations: 0.6521 MB / 439.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.531e-05/0.2474, allocations: 51.41 kB / 439.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.2476, allocations: 221 kB / 439.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.2476, allocations: 25.7 kB / 439.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.2477, allocations: 156.5 kB / 440 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.234e-05/0.2478, allocations: 87.27 kB / 440.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.201e-05/0.2479, allocations: 49.7 kB / 440.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.248, allocations: 330.8 kB / 440.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/0.2482, allocations: 83.94 kB / 440.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002253/0.2485, allocations: 132.1 kB / 440.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004183/0.2489, allocations: 218.2 kB / 440.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.2489, allocations: 0 / 440.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005366/0.2494, allocations: 285.2 kB / 441.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.2494, allocations: 6.656 kB / 441.2 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.2494, allocations: 4 kB / 441.2 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.2495, allocations: 0 / 441.2 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.2497, allocations: 59.95 kB / 441.3 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.2497, allocations: 7.938 kB / 441.3 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001256/0.2499, allocations: 15.98 kB / 441.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.2499, allocations: 7.984 kB / 441.3 MB, free: 13.63 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.0001365/0.25, allocations: 141.8 kB / 441.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.867e-05/0.2501, allocations: 27.8 kB / 441.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006048/0.2507, allocations: 303.2 kB / 441.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.2507, allocations: 4 kB / 441.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2507, allocations: 0 / 441.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.2507, allocations: 0 / 441.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.2518, allocations: 0.6548 MB / 442.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2518, allocations: 0 / 442.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002854/0.252, allocations: 55.89 kB / 442.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.744e-06/0.2521, allocations: 4 kB / 442.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.797e-05/0.2521, allocations: 4 kB / 442.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.2521, allocations: 7.938 kB / 442.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2521, allocations: 0 / 442.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007923/0.2529, allocations: 486.8 kB / 443 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.764e-05/0.253, allocations: 47.84 kB / 443 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/0.253, allocations: 7.984 kB / 443 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001543/0.2532, allocations: 19.92 kB / 443 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.546e-05/0.2532, allocations: 15.97 kB / 443.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.775e-05/0.2532, allocations: 12 kB / 443.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001364/0.2534, allocations: 156.5 kB / 443.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2534, allocations: 0 / 443.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002958/0.2536, allocations: 44 kB / 443.3 MB, free: 11.57 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.0001546/0.2538, allocations: 115 kB / 443.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004928/0.2543, allocations: 216.1 kB / 443.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.2543, allocations: 4 kB / 443.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002256/0.2545, allocations: 107.8 kB / 443.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.2548, allocations: 24.42 kB / 443.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.256, allocations: 0.7148 MB / 444.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003836/0.2564, allocations: 0.7678 MB / 445.2 MB, free: 9.566 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.656e-05/0.2564, allocations: 23.44 kB / 445.2 MB, free: 9.543 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2564, allocations: 0 / 445.2 MB, free: 9.543 MB / 350.1 MB Notification: Performance of Templates: time 0.005096/0.2615, allocations: 2.888 MB / 448.1 MB, free: 6.656 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.549565053079277]