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.001181/0.001181, allocations: 80.72 kB / 22.21 MB, free: 2.293 MB / 18.57 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.001207/0.001207, allocations: 140.4 kB / 25.59 MB, free: 8.918 MB / 18.57 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 0.9467/0.9467, allocations: 173.4 MB / 202.3 MB, free: 8.258 MB / 186.7 MB " [Timeout remaining time 179] 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 3.026e-06/3.026e-06, allocations: 0 / 269.2 MB, free: 9.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.509e-05/2.811e-05, allocations: 5.547 kB / 269.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003728/0.003756, allocations: 2.155 MB / 271.3 MB, free: 7.633 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.005135, allocations: 0.6772 MB / 272 MB, free: 6.957 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001642/0.005299, allocations: 7.938 kB / 272 MB, free: 6.949 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001967/0.005496, allocations: 48.69 kB / 272.1 MB, free: 6.902 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000211/0.005706, allocations: 48.2 kB / 272.1 MB, free: 6.855 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003272/0.006034, allocations: 108.2 kB / 272.2 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003248/0.006359, allocations: 243.6 kB / 272.5 MB, free: 6.512 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002175/0.006576, allocations: 77.53 kB / 272.5 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002344/0.00681, allocations: 127.7 kB / 272.7 MB, free: 6.312 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001582/0.006969, allocations: 87.69 kB / 272.8 MB, free: 6.227 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.132e-05/0.00701, allocations: 20.84 kB / 272.8 MB, free: 6.207 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.379e-05/0.007094, allocations: 20 kB / 272.8 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.64e-05/0.00717, allocations: 61.42 kB / 272.9 MB, free: 6.129 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.654e-05/0.007247, allocations: 63.81 kB / 272.9 MB, free: 6.066 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002817/0.007528, allocations: 191.2 kB / 273.1 MB, free: 5.879 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.763e-06/0.00753, allocations: 0 / 273.1 MB, free: 5.879 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.007531, allocations: 0 / 273.1 MB, free: 5.879 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.007535, allocations: 0.5 kB / 273.1 MB, free: 5.879 MB / 250.7 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.0007247/0.00826, allocations: 0.5599 MB / 273.7 MB, free: 5.285 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.0083, allocations: 12.03 kB / 273.7 MB, free: 5.273 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.344e-05/0.008383, allocations: 49.31 kB / 273.7 MB, free: 5.227 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002605/0.008644, allocations: 193 kB / 273.9 MB, free: 5.012 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.057e-05/0.008674, allocations: 17.31 kB / 273.9 MB, free: 4.996 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.48e-05/0.008719, allocations: 28.36 kB / 274 MB, free: 4.969 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003388/0.009058, allocations: 212.9 kB / 274.2 MB, free: 4.742 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.009072, allocations: 0 / 274.2 MB, free: 4.742 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.959e-05/0.009092, allocations: 8 kB / 274.2 MB, free: 4.734 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-05/0.009126, allocations: 16.48 kB / 274.2 MB, free: 4.719 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001645/0.009291, allocations: 77.36 kB / 274.3 MB, free: 4.641 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009149/0.01021, allocations: 0.7693 MB / 275 MB, free: 3.832 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.0104, allocations: 106.9 kB / 275.1 MB, free: 3.715 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.448e-05/0.01048, allocations: 47.64 kB / 275.2 MB, free: 3.664 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.175e-05/0.01053, allocations: 8 kB / 275.2 MB, free: 3.656 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.01057, allocations: 45.38 kB / 275.2 MB, free: 3.602 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.903e-06/0.01057, allocations: 0 / 275.2 MB, free: 3.602 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007392/0.01131, allocations: 408 kB / 275.6 MB, free: 3.164 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.01134, allocations: 55.41 kB / 275.7 MB, free: 3.098 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.01151, allocations: 238.7 kB / 275.9 MB, free: 2.844 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.01153, allocations: 33.7 kB / 276 MB, free: 2.805 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.01164, allocations: 199.1 kB / 276.1 MB, free: 2.602 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.776e-05/0.01171, allocations: 91.25 kB / 276.2 MB, free: 2.512 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.585e-05/0.0118, allocations: 55.28 kB / 276.3 MB, free: 2.449 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.01197, allocations: 0.5118 MB / 276.8 MB, free: 1.926 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.351e-05/0.01203, allocations: 27.91 kB / 276.8 MB, free: 1.898 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.586e-05/0.01213, allocations: 75.2 kB / 276.9 MB, free: 1.809 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001735/0.0123, allocations: 120.8 kB / 277 MB, free: 1.676 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.0123, allocations: 0 / 277 MB, free: 1.676 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002758/0.01258, allocations: 175.8 kB / 277.2 MB, free: 1.5 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.0126, allocations: 11.98 kB / 277.2 MB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.748e-06/0.0126, allocations: 0 / 277.2 MB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.01261, allocations: 4 kB / 277.2 MB, free: 1.484 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002179/0.01283, allocations: 55.91 kB / 277.3 MB, free: 1.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-06/0.01284, allocations: 0 / 277.3 MB, free: 1.43 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.905e-05/0.01292, allocations: 8 kB / 277.3 MB, free: 1.422 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.458e-05/0.01293, allocations: 4 kB / 277.3 MB, free: 1.418 MB / 250.7 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.0001176/0.01305, allocations: 180.5 kB / 277.5 MB, free: 1.23 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.476e-05/0.0131, allocations: 27.91 kB / 277.5 MB, free: 1.203 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003095/0.01341, allocations: 187.6 kB / 277.7 MB, free: 1.016 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.01342, allocations: 4 kB / 277.7 MB, free: 1.012 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.01342, allocations: 0 / 277.7 MB, free: 1.012 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.01342, allocations: 0 / 277.7 MB, free: 1.012 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006558/0.01408, allocations: 0.4952 MB / 278.2 MB, free: 492 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.01408, allocations: 0 / 278.2 MB, free: 492 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002199/0.0143, allocations: 52 kB / 278.2 MB, free: 440 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.01431, allocations: 0 / 278.2 MB, free: 440 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.01433, allocations: 8 kB / 278.2 MB, free: 432 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.01433, allocations: 3.938 kB / 278.2 MB, free: 428 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.01433, allocations: 4 kB / 278.2 MB, free: 424 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004107/0.01474, allocations: 385.3 kB / 278.6 MB, free: 12 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.591e-05/0.01482, allocations: 32.02 kB / 278.6 MB, free: 15.98 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.81e-05/0.01485, allocations: 8 kB / 278.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.01495, allocations: 4 kB / 278.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/0.015, allocations: 19.97 kB / 278.7 MB, free: 15.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.01502, allocations: 11.98 kB / 278.7 MB, free: 15.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.258e-05/0.01511, allocations: 173.3 kB / 278.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01511, allocations: 3.938 kB / 278.9 MB, free: 15.76 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003208/0.01543, allocations: 44 kB / 278.9 MB, free: 15.72 MB / 266.7 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.0001427/0.01557, allocations: 114.9 kB / 279 MB, free: 15.6 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002311/0.01581, allocations: 119.5 kB / 279.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.01581, allocations: 0 / 279.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.01591, allocations: 75.75 kB / 279.2 MB, free: 15.4 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003148/0.01623, allocations: 24 kB / 279.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009786/0.01721, allocations: 0.5917 MB / 279.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.914e-05/0.01728, allocations: 88.3 kB / 279.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.239e-05/0.01736, allocations: 25.94 kB / 279.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.01747, allocations: 94.2 kB / 280 MB, free: 14.53 MB / 266.7 MB Notification: Performance of SimCode: time 8.82e-07/0.01747, allocations: 0 / 280 MB, free: 14.53 MB / 266.7 MB Notification: Performance of Templates: time 0.005427/0.02289, allocations: 2.129 MB / 282.1 MB, free: 12.43 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9463996030390263]