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.001338/0.001338, allocations: 79.73 kB / 21.25 MB, free: 396 kB / 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.001432/0.001432, allocations: 160.7 kB / 24.5 MB, free: 3.453 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.505/1.505, allocations: 177.1 MB / 204.7 MB, free: 8.91 MB / 190.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.001899/0.001899, allocations: 62.38 kB / 325.5 MB, free: 228 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1342, allocations: 53.39 MB / 378.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003794/0.138, allocations: 2.122 MB / 381 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.1394, allocations: 0.705 MB / 381.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.1395, allocations: 7.938 kB / 381.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001975/0.1397, allocations: 51.45 kB / 381.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000214/0.1399, allocations: 47.64 kB / 381.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003106/0.1402, allocations: 103.8 kB / 381.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003324/0.1406, allocations: 223.8 kB / 382.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002322/0.1408, allocations: 83.94 kB / 382.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000223/0.141, allocations: 103.6 kB / 382.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001844/0.1412, allocations: 99.47 kB / 382.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.751e-05/0.1413, allocations: 16 kB / 382.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.1414, allocations: 39.97 kB / 382.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.073e-05/0.1414, allocations: 55.72 kB / 382.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.1415, allocations: 87.53 kB / 382.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003764/0.1419, allocations: 254.8 kB / 382.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.1419, allocations: 4 kB / 382.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1419, allocations: 0 / 382.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1419, allocations: 0 / 382.9 MB, free: 11.52 MB / 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.0008981/0.1428, allocations: 485.4 kB / 383.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.1429, allocations: 11.98 kB / 383.4 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.143, allocations: 28.8 kB / 383.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003212/0.1433, allocations: 198.7 kB / 383.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.284e-05/0.1434, allocations: 24.81 kB / 383.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.917e-05/0.1434, allocations: 20.38 kB / 383.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000504/0.1439, allocations: 259.9 kB / 383.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.1439, allocations: 0 / 383.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.35e-05/0.144, allocations: 15.94 kB / 383.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.684e-05/0.144, allocations: 8.5 kB / 383.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004397/0.1444, allocations: 193.8 kB / 384.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/0.1455, allocations: 0.7017 MB / 384.8 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003696/0.1459, allocations: 170.4 kB / 385 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002146/0.1461, allocations: 100.8 kB / 385.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.42e-05/0.1462, allocations: 12 kB / 385.1 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.1462, allocations: 34.94 kB / 385.1 MB, free: 9.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.313e-06/0.1462, allocations: 0 / 385.1 MB, free: 9.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.00149/0.1477, allocations: 0.6538 MB / 385.8 MB, free: 8.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.1478, allocations: 55.41 kB / 385.8 MB, free: 8.406 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001935/0.148, allocations: 183.9 kB / 386 MB, free: 8.211 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.148, allocations: 33.7 kB / 386 MB, free: 8.172 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.1481, allocations: 160.4 kB / 386.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.848e-05/0.1482, allocations: 87.28 kB / 386.3 MB, free: 7.926 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.7e-05/0.1483, allocations: 45.7 kB / 386.3 MB, free: 7.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.1484, allocations: 334.8 kB / 386.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002012/0.1486, allocations: 83.89 kB / 386.7 MB, free: 7.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002265/0.1489, allocations: 127.4 kB / 386.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004296/0.1493, allocations: 226.4 kB / 387.1 MB, free: 7.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.1493, allocations: 0 / 387.1 MB, free: 7.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005299/0.1498, allocations: 269.3 kB / 387.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.1498, allocations: 11.94 kB / 387.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.1498, allocations: 0 / 387.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.1499, allocations: 4 kB / 387.4 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002811/0.1501, allocations: 67.95 kB / 387.4 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.1501, allocations: 0 / 387.4 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.1503, allocations: 15.98 kB / 387.4 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.1503, allocations: 8 kB / 387.4 MB, free: 6.715 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.0001492/0.1504, allocations: 145.7 kB / 387.6 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.681e-05/0.1505, allocations: 19.86 kB / 387.6 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006006/0.1511, allocations: 294.9 kB / 387.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1511, allocations: 4 kB / 387.9 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.1511, allocations: 4 kB / 387.9 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.1511, allocations: 3.984 kB / 387.9 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.1521, allocations: 0.5851 MB / 388.5 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1521, allocations: 4 kB / 388.5 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002741/0.1524, allocations: 51.97 kB / 388.5 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.1524, allocations: 3.984 kB / 388.5 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.1524, allocations: 12.03 kB / 388.6 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.1524, allocations: 7.938 kB / 388.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1524, allocations: 0 / 388.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008233/0.1532, allocations: 486.1 kB / 389 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.989e-05/0.1533, allocations: 35.89 kB / 389.1 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.242e-05/0.1533, allocations: 8.188 kB / 389.1 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001471/0.1535, allocations: 15.98 kB / 389.1 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.011e-05/0.1536, allocations: 23.91 kB / 389.1 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.1536, allocations: 8 kB / 389.1 MB, free: 4.949 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001208/0.1537, allocations: 141.5 kB / 389.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1537, allocations: 0 / 389.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002971/0.154, allocations: 48 kB / 389.3 MB, free: 4.766 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.000195/0.1542, allocations: 107.1 kB / 389.4 MB, free: 4.648 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005125/0.1547, allocations: 212.4 kB / 389.6 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1547, allocations: 128 / 389.6 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.1549, allocations: 111.9 kB / 389.7 MB, free: 4.332 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.1553, allocations: 34.52 kB / 389.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.1565, allocations: 0.6854 MB / 390.5 MB, free: 3.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000186/0.1567, allocations: 154.8 kB / 390.6 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001236/0.1568, allocations: 45.89 kB / 390.7 MB, free: 3.371 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.067e-05/0.1569, allocations: 32.5 kB / 390.7 MB, free: 3.336 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1569, allocations: 0 / 390.7 MB, free: 3.336 MB / 350.1 MB Notification: Performance of Templates: time 0.005906/0.1628, allocations: 1.815 MB / 392.5 MB, free: 1.531 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 -s ida -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: 4.716084445943125]