Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 112 kB / 20.43 MB, free: 1.449 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 187.8 kB / 23.72 MB, free: 4.68 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 47.91 kB / 370.9 MB, free: 9.355 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2945, allocations: 52.19 MB / 423.1 MB, free: 14.68 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004006/0.2985, allocations: 2.236 MB / 425.4 MB, free: 12.43 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00141/0.2999, allocations: 0.7049 MB / 426.1 MB, free: 11.73 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.3, allocations: 7.938 kB / 426.1 MB, free: 11.72 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002082/0.3002, allocations: 43.53 kB / 426.1 MB, free: 11.68 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002146/0.3005, allocations: 51.56 kB / 426.2 MB, free: 11.62 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003358/0.3008, allocations: 107.7 kB / 426.3 MB, free: 11.52 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003492/0.3011, allocations: 235.7 kB / 426.5 MB, free: 11.29 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002329/0.3014, allocations: 80 kB / 426.6 MB, free: 11.21 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001893/0.3016, allocations: 99.62 kB / 426.7 MB, free: 11.11 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001773/0.3017, allocations: 111.4 kB / 426.8 MB, free: 11 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.792e-05/0.3018, allocations: 16 kB / 426.8 MB, free: 10.99 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 9.435e-05/0.3019, allocations: 28 kB / 426.8 MB, free: 10.96 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 9.014e-05/0.302, allocations: 59.77 kB / 426.9 MB, free: 10.9 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.3021, allocations: 111.3 kB / 427 MB, free: 10.79 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003752/0.3025, allocations: 240.1 kB / 427.2 MB, free: 10.57 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.3025, allocations: 3.984 kB / 427.2 MB, free: 10.56 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.603e-06/0.3025, allocations: 0 / 427.2 MB, free: 10.56 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.228e-05/0.3025, allocations: 0 / 427.2 MB, free: 10.56 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.0009512/0.3034, allocations: 489.4 kB / 427.7 MB, free: 10.05 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.3035, allocations: 8.031 kB / 427.7 MB, free: 10.05 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.189e-05/0.3035, allocations: 32.75 kB / 427.7 MB, free: 10.02 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003101/0.3039, allocations: 194 kB / 427.9 MB, free: 9.801 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.828e-05/0.3039, allocations: 16.81 kB / 428 MB, free: 9.785 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.59e-05/0.3039, allocations: 35.89 kB / 428 MB, free: 9.75 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005315/0.3045, allocations: 250.7 kB / 428.2 MB, free: 9.488 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.3045, allocations: 0 / 428.2 MB, free: 9.488 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.753e-05/0.3045, allocations: 11.94 kB / 428.2 MB, free: 9.477 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.237e-05/0.3045, allocations: 8.438 kB / 428.3 MB, free: 9.465 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004749/0.305, allocations: 197.5 kB / 428.4 MB, free: 9.273 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.3063, allocations: 0.7827 MB / 429.2 MB, free: 8.441 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004193/0.3067, allocations: 174.5 kB / 429.4 MB, free: 8.262 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002251/0.3069, allocations: 94.86 kB / 429.5 MB, free: 8.168 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 7.661e-05/0.307, allocations: 19.92 kB / 429.5 MB, free: 8.148 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.307, allocations: 34.55 kB / 429.5 MB, free: 8.105 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=22): time 1.373e-06/0.307, allocations: 0 / 429.5 MB, free: 8.105 MB / 334.1 MB
Notification: Performance of matching and sorting (n=23): time 0.001555/0.3086, allocations: 0.6463 MB / 430.2 MB, free: 7.426 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.3086, allocations: 63.34 kB / 430.3 MB, free: 7.352 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002206/0.3088, allocations: 216.9 kB / 430.5 MB, free: 7.129 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.3089, allocations: 33.64 kB / 430.5 MB, free: 7.09 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.309, allocations: 152.5 kB / 430.6 MB, free: 6.934 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 7.947e-05/0.3091, allocations: 91.22 kB / 430.7 MB, free: 6.844 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.541e-05/0.3091, allocations: 49.7 kB / 430.8 MB, free: 6.789 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001532/0.3093, allocations: 334.8 kB / 431.1 MB, free: 6.453 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.3095, allocations: 79.95 kB / 431.2 MB, free: 6.375 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002408/0.3097, allocations: 123.4 kB / 431.3 MB, free: 6.242 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004505/0.3102, allocations: 218.5 kB / 431.5 MB, free: 6.02 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.3102, allocations: 0 / 431.5 MB, free: 6.02 MB / 334.1 MB
Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005769/0.3108, allocations: 273.3 kB / 431.8 MB, free: 5.746 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.3108, allocations: 8.062 kB / 431.8 MB, free: 5.738 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3108, allocations: 0 / 431.8 MB, free: 5.738 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.3108, allocations: 4.062 kB / 431.8 MB, free: 5.734 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003029/0.3111, allocations: 67.89 kB / 431.9 MB, free: 5.668 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.3111, allocations: 4 kB / 431.9 MB, free: 5.664 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.3113, allocations: 15.92 kB / 431.9 MB, free: 5.648 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.3113, allocations: 11.98 kB / 431.9 MB, free: 5.637 MB / 334.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.0001433/0.3114, allocations: 137.8 kB / 432 MB, free: 5.492 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 5.327e-05/0.3115, allocations: 27.86 kB / 432.1 MB, free: 5.465 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006377/0.3121, allocations: 292.4 kB / 432.3 MB, free: 5.172 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.3121, allocations: 11.92 kB / 432.4 MB, free: 5.16 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.3121, allocations: 3.984 kB / 432.4 MB, free: 5.156 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3121, allocations: 3.938 kB / 432.4 MB, free: 5.152 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.3133, allocations: 0.6628 MB / 433 MB, free: 4.438 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3133, allocations: 0 / 433 MB, free: 4.438 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002974/0.3136, allocations: 55.89 kB / 433.1 MB, free: 4.383 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.3136, allocations: 7.938 kB / 433.1 MB, free: 4.375 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.3136, allocations: 4 kB / 433.1 MB, free: 4.371 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.3136, allocations: 4 kB / 433.1 MB, free: 4.367 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3136, allocations: 0 / 433.1 MB, free: 4.367 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000866/0.3145, allocations: 486.3 kB / 433.6 MB, free: 3.871 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 9.233e-05/0.3146, allocations: 43.89 kB / 433.6 MB, free: 3.828 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.643e-05/0.3146, allocations: 7.938 kB / 433.6 MB, free: 3.82 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000161/0.3148, allocations: 11.98 kB / 433.6 MB, free: 3.809 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.457e-05/0.3148, allocations: 19.91 kB / 433.7 MB, free: 3.789 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.892e-05/0.3148, allocations: 16 kB / 433.7 MB, free: 3.773 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.0001425/0.315, allocations: 156.5 kB / 433.8 MB, free: 3.625 MB / 334.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.315, allocations: 0 / 433.8 MB, free: 3.625 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0003066/0.3153, allocations: 44 kB / 433.9 MB, free: 3.582 MB / 334.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.0001504/0.3154, allocations: 99.25 kB / 434 MB, free: 3.477 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0005411/0.316, allocations: 219.9 kB / 434.2 MB, free: 3.262 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.316, allocations: 0 / 434.2 MB, free: 3.262 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.000243/0.3162, allocations: 107.8 kB / 434.3 MB, free: 3.156 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003504/0.3166, allocations: 32.36 kB / 434.3 MB, free: 3.125 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.3177, allocations: 0.691 MB / 435 MB, free: 2.41 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004176/0.3181, allocations: 0.7753 MB / 435.8 MB, free: 1.605 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 0.0001338/0.3183, allocations: 53.89 kB / 435.8 MB, free: 1.551 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.373e-05/0.3183, allocations: 23.44 kB / 435.9 MB, free: 1.527 MB / 334.1 MB
Notification: Performance of SimCode: time 4e-07/0.3183, allocations: 0 / 435.9 MB, free: 1.527 MB / 334.1 MB
Notification: Performance of Templates: time 0.006276/0.3246, allocations: 2.223 MB / 438.1 MB, free: 15.3 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.887680543586612]