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.001732/0.001732, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.00219/0.00219, allocations: 207.9 kB / 23.73 MB, free: 4.379 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.721/1.721, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.001569/0.001569, allocations: 51.91 kB / 378.2 MB, free: 2.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3522, allocations: 53.38 MB / 431.6 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004306/0.3565, allocations: 2.12 MB / 433.7 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002009/0.3585, allocations: 0.705 MB / 434.4 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000191/0.3587, allocations: 7.938 kB / 434.4 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002636/0.359, allocations: 43.53 kB / 434.4 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002622/0.3593, allocations: 51.58 kB / 434.5 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003612/0.3596, allocations: 99.77 kB / 434.6 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003678/0.36, allocations: 239.5 kB / 434.8 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002511/0.3602, allocations: 87.81 kB / 434.9 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002507/0.3605, allocations: 99.56 kB / 435 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001941/0.3607, allocations: 111.5 kB / 435.1 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.423e-05/0.3607, allocations: 16 kB / 435.1 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001069/0.3608, allocations: 36 kB / 435.2 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.541e-05/0.3609, allocations: 59.83 kB / 435.2 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.361, allocations: 87.45 kB / 435.3 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004117/0.3615, allocations: 253.5 kB / 435.6 MB, free: 2.855 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3615, allocations: 0 / 435.6 MB, free: 2.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.3615, allocations: 0 / 435.6 MB, free: 2.855 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.3615, allocations: 0 / 435.6 MB, free: 2.855 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.001125/0.3626, allocations: 485.4 kB / 436 MB, free: 2.352 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.3626, allocations: 8.031 kB / 436 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001806/0.3628, allocations: 32.8 kB / 436.1 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000424/0.3632, allocations: 199.2 kB / 436.3 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.378e-05/0.3633, allocations: 16.81 kB / 436.3 MB, free: 2.078 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.694e-05/0.3633, allocations: 24.36 kB / 436.3 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006197/0.3639, allocations: 255 kB / 436.6 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.28e-05/0.364, allocations: 3.984 kB / 436.6 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.949e-05/0.364, allocations: 12 kB / 436.6 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.197e-05/0.364, allocations: 12.38 kB / 436.6 MB, free: 1.762 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004645/0.3645, allocations: 189.6 kB / 436.8 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.3657, allocations: 0.7052 MB / 437.5 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004033/0.3661, allocations: 172.5 kB / 437.6 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000227/0.3664, allocations: 100.8 kB / 437.7 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.047e-05/0.3664, allocations: 12 kB / 437.8 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.864e-05/0.3665, allocations: 30.94 kB / 437.8 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.593e-06/0.3665, allocations: 0 / 437.8 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001718/0.3682, allocations: 0.6575 MB / 438.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/0.3683, allocations: 55.41 kB / 438.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002295/0.3685, allocations: 195.8 kB / 438.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.306e-05/0.3685, allocations: 25.7 kB / 438.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.3687, allocations: 148.5 kB / 438.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.3688, allocations: 87.28 kB / 438.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.3689, allocations: 49.69 kB / 439 MB, free: 15.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.3691, allocations: 330.8 kB / 439.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002241/0.3693, allocations: 83.94 kB / 439.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002512/0.3696, allocations: 120.1 kB / 439.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004688/0.37, allocations: 223.2 kB / 439.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.37, allocations: 4 kB / 439.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000567/0.3706, allocations: 270.4 kB / 440 MB, free: 14.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.3706, allocations: 15.92 kB / 440 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.3706, allocations: 0 / 440 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.3707, allocations: 4.062 kB / 440 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003147/0.371, allocations: 67.89 kB / 440.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.371, allocations: 0 / 440.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001318/0.3711, allocations: 15.98 kB / 440.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.287e-05/0.3711, allocations: 8 kB / 440.1 MB, free: 14.06 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.0002952/0.3714, allocations: 149.6 kB / 440.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.898e-05/0.3715, allocations: 19.86 kB / 440.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007033/0.3722, allocations: 302.9 kB / 440.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.3722, allocations: 0 / 440.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.3722, allocations: 4 kB / 440.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3722, allocations: 0 / 440.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.3734, allocations: 0.5927 MB / 441.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.3734, allocations: 4 kB / 441.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002905/0.3736, allocations: 51.91 kB / 441.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.3737, allocations: 4.031 kB / 441.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.053e-05/0.3737, allocations: 8 kB / 441.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.3737, allocations: 4 kB / 441.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3737, allocations: 3.984 kB / 441.2 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008627/0.3745, allocations: 481.5 kB / 441.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.132e-05/0.3746, allocations: 31.91 kB / 441.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.585e-05/0.3747, allocations: 8 kB / 441.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.3748, allocations: 11.98 kB / 441.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.498e-05/0.3749, allocations: 35.83 kB / 441.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.3749, allocations: 4 kB / 441.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001366/0.375, allocations: 141.5 kB / 441.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.375, allocations: 0 / 441.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003449/0.3754, allocations: 51.94 kB / 442 MB, free: 12.11 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.0002065/0.3756, allocations: 99.25 kB / 442.1 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005297/0.3761, allocations: 214.5 kB / 442.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3761, allocations: 4.125 kB / 442.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002477/0.3764, allocations: 115.8 kB / 442.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004173/0.3768, allocations: 34.55 kB / 442.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/0.3781, allocations: 0.6854 MB / 443.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001755/0.3782, allocations: 154.8 kB / 443.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001344/0.3784, allocations: 45.91 kB / 443.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.648e-05/0.3785, allocations: 31.36 kB / 443.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3785, allocations: 0 / 443.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of Templates: time 0.006549/0.385, allocations: 2.108 MB / 445.5 MB, free: 8.578 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins/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: 5.321766321081668]