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.002521/0.002521, allocations: 91.61 kB / 20.96 MB, free: 3.465 MB / 18.57 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.003/0.003, allocations: 165.3 kB / 24.27 MB, free: 156 kB / 18.57 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.595/1.595, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 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 1.433e-06/1.433e-06, allocations: 0 / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.359e-05/3.503e-05, allocations: 2.312 kB / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003964/0.003999, allocations: 2.159 MB / 274.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001837/0.005836, allocations: 0.7088 MB / 275.2 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001275/0.005963, allocations: 11.88 kB / 275.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000202/0.006165, allocations: 51.45 kB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000206/0.006371, allocations: 43.59 kB / 275.3 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003079/0.006679, allocations: 107.6 kB / 275.4 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003422/0.007021, allocations: 243.7 kB / 275.6 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002077/0.007229, allocations: 76 kB / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002917/0.007521, allocations: 139.6 kB / 275.8 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.007688, allocations: 83.7 kB / 275.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.755e-05/0.007736, allocations: 16 kB / 275.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.00785, allocations: 43.91 kB / 276 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.781e-05/0.007938, allocations: 51.77 kB / 276 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.347e-05/0.008032, allocations: 63.83 kB / 276.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003884/0.00842, allocations: 255.1 kB / 276.3 MB, free: 13.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.008424, allocations: 4 kB / 276.3 MB, free: 13.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.008425, allocations: 3.938 kB / 276.3 MB, free: 13.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.008431, allocations: 0 / 276.3 MB, free: 13.8 MB / 266.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.001005/0.009436, allocations: 0.5815 MB / 276.9 MB, free: 13.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.009473, allocations: 8.031 kB / 276.9 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001776/0.009651, allocations: 48.75 kB / 277 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003439/0.009995, allocations: 200.1 kB / 277.2 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.187e-05/0.01003, allocations: 16.88 kB / 277.2 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.554e-05/0.01007, allocations: 24.38 kB / 277.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004824/0.01055, allocations: 240.6 kB / 277.5 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.01057, allocations: 192 / 277.5 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.946e-05/0.0106, allocations: 12.38 kB / 277.5 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.124e-05/0.01063, allocations: 12.44 kB / 277.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004001/0.01103, allocations: 141.8 kB / 277.6 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001358/0.01239, allocations: 0.8547 MB / 278.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003643/0.01275, allocations: 154.4 kB / 278.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001822/0.01293, allocations: 75.64 kB / 278.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.842e-05/0.01301, allocations: 15.92 kB / 278.7 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.53e-05/0.01305, allocations: 37.39 kB / 278.7 MB, free: 11.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.222e-06/0.01305, allocations: 0 / 278.7 MB, free: 11.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.001364/0.01441, allocations: 0.5514 MB / 279.3 MB, free: 10.66 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/0.01447, allocations: 59.41 kB / 279.4 MB, free: 10.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002971/0.01477, allocations: 262.8 kB / 279.6 MB, free: 10.31 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.302e-05/0.0148, allocations: 29.7 kB / 279.6 MB, free: 10.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001701/0.01497, allocations: 207.1 kB / 279.8 MB, free: 10.07 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.721e-05/0.01507, allocations: 91.27 kB / 279.9 MB, free: 9.977 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.01518, allocations: 59.36 kB / 280 MB, free: 9.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003073/0.01548, allocations: 0.5118 MB / 280.5 MB, free: 9.387 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001756/0.01566, allocations: 59.97 kB / 280.6 MB, free: 9.328 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/0.01587, allocations: 106.7 kB / 280.7 MB, free: 9.207 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003759/0.01624, allocations: 189.6 kB / 280.8 MB, free: 9.008 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.01625, allocations: 3.938 kB / 280.9 MB, free: 9.004 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005058/0.01675, allocations: 237.3 kB / 281.1 MB, free: 8.766 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.01677, allocations: 4 kB / 281.1 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.01677, allocations: 4 kB / 281.1 MB, free: 8.758 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.01679, allocations: 0 / 281.1 MB, free: 8.758 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002767/0.01707, allocations: 59.89 kB / 281.2 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.01707, allocations: 4.062 kB / 281.2 MB, free: 8.695 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001122/0.01719, allocations: 15.98 kB / 281.2 MB, free: 8.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.312e-05/0.01721, allocations: 12 kB / 281.2 MB, free: 8.668 MB / 266.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.0001688/0.01738, allocations: 176.5 kB / 281.4 MB, free: 8.484 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.695e-05/0.01745, allocations: 31.8 kB / 281.4 MB, free: 8.453 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005812/0.01803, allocations: 243 kB / 281.6 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.01803, allocations: 0 / 281.6 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.01804, allocations: 4 kB / 281.6 MB, free: 8.207 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.01804, allocations: 4 kB / 281.6 MB, free: 8.203 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0014/0.01944, allocations: 0.6106 MB / 282.2 MB, free: 7.547 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.01945, allocations: 4 kB / 282.2 MB, free: 7.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002833/0.01973, allocations: 55.91 kB / 282.3 MB, free: 7.488 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.708e-06/0.01973, allocations: 0 / 282.3 MB, free: 7.488 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.582e-05/0.01976, allocations: 8 kB / 282.3 MB, free: 7.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.01977, allocations: 4.062 kB / 282.3 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.01977, allocations: 0 / 282.3 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008365/0.0206, allocations: 486.1 kB / 282.8 MB, free: 6.973 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.897e-05/0.02069, allocations: 31.84 kB / 282.8 MB, free: 6.941 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.96e-05/0.02073, allocations: 8 kB / 282.8 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.02087, allocations: 11.98 kB / 282.8 MB, free: 6.922 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.404e-05/0.02094, allocations: 15.97 kB / 282.9 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.256e-05/0.02097, allocations: 11.98 kB / 282.9 MB, free: 6.895 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001981/0.02116, allocations: 185.4 kB / 283 MB, free: 6.715 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02116, allocations: 0 / 283 MB, free: 6.715 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003386/0.0215, allocations: 44 kB / 283.1 MB, free: 6.672 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.0002156/0.02172, allocations: 115.1 kB / 283.2 MB, free: 6.551 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004835/0.0222, allocations: 191.9 kB / 283.4 MB, free: 6.359 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.0222, allocations: 0 / 283.4 MB, free: 6.359 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002289/0.02243, allocations: 107.5 kB / 283.5 MB, free: 6.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003439/0.02278, allocations: 23.98 kB / 283.5 MB, free: 6.227 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.02395, allocations: 0.5958 MB / 284.1 MB, free: 5.602 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001885/0.02414, allocations: 154.8 kB / 284.3 MB, free: 5.43 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000118/0.02425, allocations: 37.91 kB / 284.3 MB, free: 5.395 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.405e-05/0.02434, allocations: 24.5 kB / 284.3 MB, free: 5.371 MB / 266.7 MB Notification: Performance of SimCode: time 8.42e-07/0.02434, allocations: 0 / 284.3 MB, free: 5.371 MB / 266.7 MB Notification: Performance of Templates: time 0.006611/0.03095, allocations: 1.873 MB / 286.2 MB, free: 3.504 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 240] 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: 4.939074008027092]