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.00173/0.00173, allocations: 106.5 kB / 21.2 MB, free: 0.6406 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.002022/0.002022, allocations: 212.6 kB / 24.49 MB, free: 3.938 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.418/1.418, 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.001548/0.001548, allocations: 55.91 kB / 379 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.229/0.2305, allocations: 53.37 MB / 432.3 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003511/0.234, allocations: 2.116 MB / 434.5 MB, free: 4.562 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001327/0.2354, allocations: 0.7088 MB / 435.2 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.2355, allocations: 7.938 kB / 435.2 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001726/0.2357, allocations: 43.52 kB / 435.2 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001988/0.2359, allocations: 51.58 kB / 435.3 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002959/0.2361, allocations: 103.8 kB / 435.4 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003015/0.2365, allocations: 231.7 kB / 435.6 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/0.2366, allocations: 87.73 kB / 435.7 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000201/0.2368, allocations: 99.62 kB / 435.8 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001554/0.237, allocations: 103.5 kB / 435.9 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.201e-05/0.237, allocations: 20 kB / 435.9 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.533e-05/0.2371, allocations: 43.97 kB / 435.9 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.849e-05/0.2372, allocations: 51.78 kB / 436 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.565e-05/0.2373, allocations: 95.45 kB / 436.1 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003352/0.2376, allocations: 249.7 kB / 436.3 MB, free: 2.691 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.2376, allocations: 0 / 436.3 MB, free: 2.691 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2377, allocations: 0 / 436.3 MB, free: 2.691 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.2377, allocations: 0 / 436.3 MB, free: 2.691 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.0008855/0.2385, allocations: 485.4 kB / 436.8 MB, free: 2.188 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.2386, allocations: 8.031 kB / 436.8 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001237/0.2387, allocations: 28.8 kB / 436.8 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003095/0.239, allocations: 207.2 kB / 437 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/0.239, allocations: 16.81 kB / 437.1 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.379e-05/0.2391, allocations: 16.38 kB / 437.1 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005799/0.2397, allocations: 263 kB / 437.3 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.2397, allocations: 3.938 kB / 437.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.2397, allocations: 11.98 kB / 437.3 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.609e-05/0.2397, allocations: 8.438 kB / 437.4 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004935/0.2402, allocations: 197.6 kB / 437.5 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.2414, allocations: 0.6935 MB / 438.2 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003891/0.2418, allocations: 178 kB / 438.4 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002245/0.242, allocations: 96.8 kB / 438.5 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.577e-05/0.2421, allocations: 15.94 kB / 438.5 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.2421, allocations: 34.94 kB / 438.6 MB, free: 348 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.2421, allocations: 0 / 438.6 MB, free: 348 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001594/0.2437, allocations: 0.6623 MB / 439.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.2438, allocations: 59.34 kB / 439.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000201/0.244, allocations: 183.8 kB / 439.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.73e-05/0.244, allocations: 37.7 kB / 439.5 MB, free: 15.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.2441, allocations: 148.4 kB / 439.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.83e-05/0.2442, allocations: 87.23 kB / 439.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.92e-05/0.2443, allocations: 49.69 kB / 439.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.2445, allocations: 330.8 kB / 440.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002268/0.2447, allocations: 83.94 kB / 440.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000242/0.2449, allocations: 120.1 kB / 440.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004622/0.2454, allocations: 220.9 kB / 440.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.2454, allocations: 0 / 440.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005801/0.246, allocations: 283 kB / 440.8 MB, free: 13.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.246, allocations: 4 kB / 440.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.246, allocations: 0 / 440.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.246, allocations: 4 kB / 440.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003058/0.2463, allocations: 63.95 kB / 440.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.2463, allocations: 0 / 440.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001337/0.2465, allocations: 15.98 kB / 440.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.724e-05/0.2465, allocations: 12 kB / 440.9 MB, free: 13.89 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.2466, allocations: 141.7 kB / 441 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.731e-05/0.2467, allocations: 23.86 kB / 441 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006599/0.2474, allocations: 294.9 kB / 441.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.2474, allocations: 4 kB / 441.3 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2474, allocations: 0 / 441.3 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.138e-05/0.2475, allocations: 39.83 kB / 441.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.756e-05/0.2475, allocations: 8 kB / 441.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.2477, allocations: 11.98 kB / 441.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.089e-05/0.2477, allocations: 23.89 kB / 441.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000842/0.2486, allocations: 368.7 kB / 441.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009348/0.2495, allocations: 0.5584 MB / 442.3 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002422/0.2497, allocations: 108.7 kB / 442.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001189/0.2499, allocations: 141.5 kB / 442.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of Backend: time 4.91e-07/0.2499, allocations: 0 / 442.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006933/0.2505, allocations: 222.2 kB / 442.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of SimCode: time 0.001348/0.2519, allocations: 1.076 MB / 443.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of Templates: time 0.006701/0.2586, allocations: 2.72 MB / 446.6 MB, free: 8.105 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 -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.524301605997607]