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.001407/0.001407, allocations: 75.73 kB / 21.24 MB, free: 400 kB / 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.001437/0.001437, allocations: 169.2 kB / 24.5 MB, free: 3.453 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.48/1.48, allocations: 177.2 MB / 204.9 MB, free: 8.918 MB / 190.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.001615/0.001615, allocations: 46.55 kB / 325.6 MB, free: 248 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1033, allocations: 53.34 MB / 378.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00369/0.107, allocations: 2.115 MB / 381 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001355/0.1083, allocations: 0.7127 MB / 381.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.1084, allocations: 7.938 kB / 381.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001775/0.1086, allocations: 47.47 kB / 381.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000187/0.1088, allocations: 47.58 kB / 381.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000313/0.1091, allocations: 99.77 kB / 381.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003146/0.1094, allocations: 235.7 kB / 382.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002136/0.1097, allocations: 79.94 kB / 382.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002113/0.1099, allocations: 107.6 kB / 382.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001614/0.11, allocations: 99.47 kB / 382.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.802e-05/0.1101, allocations: 20 kB / 382.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.814e-05/0.1102, allocations: 31.98 kB / 382.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.402e-05/0.1102, allocations: 63.7 kB / 382.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.853e-05/0.1103, allocations: 87.52 kB / 382.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003453/0.1107, allocations: 250.8 kB / 382.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1107, allocations: 0 / 382.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1107, allocations: 3.938 kB / 382.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.1107, allocations: 0 / 382.9 MB, free: 11.65 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.0008871/0.1116, allocations: 485.5 kB / 383.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.1116, allocations: 12.03 kB / 383.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.1118, allocations: 28.78 kB / 383.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003289/0.1121, allocations: 203.3 kB / 383.6 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.339e-05/0.1121, allocations: 12.88 kB / 383.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.721e-05/0.1122, allocations: 20.38 kB / 383.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004924/0.1127, allocations: 259.9 kB / 383.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.1127, allocations: 4 kB / 383.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/0.1127, allocations: 12 kB / 383.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.589e-05/0.1127, allocations: 8.5 kB / 383.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004733/0.1132, allocations: 193.8 kB / 384.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.1144, allocations: 0.7017 MB / 384.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003895/0.1148, allocations: 176.9 kB / 385 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002188/0.115, allocations: 96.17 kB / 385.1 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.648e-05/0.1151, allocations: 15.98 kB / 385.1 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.1151, allocations: 30.94 kB / 385.1 MB, free: 9.301 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.433e-06/0.1151, allocations: 0 / 385.1 MB, free: 9.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001507/0.1166, allocations: 0.652 MB / 385.8 MB, free: 8.613 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.726e-05/0.1167, allocations: 55.41 kB / 385.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001899/0.1168, allocations: 191.9 kB / 386 MB, free: 8.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.925e-05/0.1169, allocations: 33.64 kB / 386 MB, free: 8.305 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.117, allocations: 152.4 kB / 386.2 MB, free: 8.152 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.172e-05/0.1171, allocations: 83.28 kB / 386.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.158e-05/0.1171, allocations: 49.7 kB / 386.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.1173, allocations: 330.8 kB / 386.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.1175, allocations: 91.94 kB / 386.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002327/0.1177, allocations: 127.3 kB / 386.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004404/0.1182, allocations: 218.3 kB / 387.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.1182, allocations: 7.875 kB / 387.1 MB, free: 7.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005519/0.1187, allocations: 273.3 kB / 387.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.1188, allocations: 4 kB / 387.3 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1188, allocations: 0 / 387.3 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.1188, allocations: 4 kB / 387.3 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002986/0.1191, allocations: 63.89 kB / 387.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.1191, allocations: 0 / 387.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001342/0.1192, allocations: 19.97 kB / 387.4 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/0.1192, allocations: 8 kB / 387.4 MB, free: 6.855 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.0001527/0.1194, allocations: 141.7 kB / 387.6 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.337e-05/0.1194, allocations: 31.91 kB / 387.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006449/0.1201, allocations: 291.9 kB / 387.9 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.1201, allocations: 4 kB / 387.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.1201, allocations: 0 / 387.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.1201, allocations: 0 / 387.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.1212, allocations: 0.5968 MB / 388.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1212, allocations: 0 / 388.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002815/0.1215, allocations: 51.95 kB / 388.5 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.835e-06/0.1215, allocations: 4 kB / 388.5 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/0.1215, allocations: 4 kB / 388.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.1215, allocations: 4 kB / 388.5 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1215, allocations: 0 / 388.5 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008333/0.1223, allocations: 490.5 kB / 389 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.82e-05/0.1224, allocations: 39.92 kB / 389.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.042e-05/0.1224, allocations: 8 kB / 389.1 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.1226, allocations: 15.98 kB / 389.1 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.372e-05/0.1227, allocations: 23.84 kB / 389.1 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.81e-05/0.1227, allocations: 8 kB / 389.1 MB, free: 5.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00012/0.1228, allocations: 141.5 kB / 389.3 MB, free: 4.953 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1228, allocations: 0 / 389.3 MB, free: 4.953 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003079/0.1231, allocations: 44 kB / 389.3 MB, free: 4.91 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.0001679/0.1233, allocations: 111.1 kB / 389.4 MB, free: 4.789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004985/0.1238, allocations: 216.5 kB / 389.6 MB, free: 4.578 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1238, allocations: 3.938 kB / 389.6 MB, free: 4.574 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002322/0.124, allocations: 107.9 kB / 389.7 MB, free: 4.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.1243, allocations: 23.78 kB / 389.8 MB, free: 4.445 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.1254, allocations: 0.6894 MB / 390.4 MB, free: 3.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001894/0.1256, allocations: 158.8 kB / 390.6 MB, free: 3.559 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001282/0.1258, allocations: 45.91 kB / 390.6 MB, free: 3.508 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.878e-05/0.1258, allocations: 28.48 kB / 390.7 MB, free: 3.477 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1258, allocations: 0 / 390.7 MB, free: 3.477 MB / 350.1 MB Notification: Performance of Templates: time 0.006281/0.1321, allocations: 1.827 MB / 392.5 MB, free: 1.656 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 -s ida -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.472135237068869]