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.001783/0.001783, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002093/0.002093, allocations: 212.8 kB / 24.52 MB, free: 3.914 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.386/1.386, allocations: 230.6 MB / 258.3 MB, free: 7.742 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: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 43.92 kB / 378.5 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2897, allocations: 53.38 MB / 431.9 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003616/0.2933, allocations: 2.113 MB / 434 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001328/0.2946, allocations: 0.7049 MB / 434.7 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.2947, allocations: 11.94 kB / 434.7 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000181/0.2949, allocations: 39.53 kB / 434.7 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001849/0.2951, allocations: 51.56 kB / 434.8 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003023/0.2954, allocations: 99.77 kB / 434.9 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002997/0.2957, allocations: 239.6 kB / 435.1 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/0.2959, allocations: 80 kB / 435.2 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001927/0.2961, allocations: 99.62 kB / 435.3 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.2962, allocations: 107.5 kB / 435.4 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.726e-05/0.2963, allocations: 23.94 kB / 435.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.433e-05/0.2964, allocations: 35.98 kB / 435.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.541e-05/0.2965, allocations: 63.77 kB / 435.5 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.881e-05/0.2966, allocations: 83.47 kB / 435.6 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003507/0.2969, allocations: 257 kB / 435.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2969, allocations: 0 / 435.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2969, allocations: 0 / 435.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.2969, allocations: 0 / 435.9 MB, free: 2.672 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.0009184/0.2978, allocations: 485.4 kB / 436.3 MB, free: 2.168 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.2979, allocations: 12.03 kB / 436.3 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.403e-05/0.2979, allocations: 8.625 kB / 436.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.913e-05/0.298, allocations: 58.67 kB / 436.4 MB, free: 2.082 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.2981, allocations: 32.8 kB / 436.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000294/0.2984, allocations: 191.3 kB / 436.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.069e-05/0.2984, allocations: 16.81 kB / 436.6 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.426e-05/0.2985, allocations: 20.38 kB / 436.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005065/0.299, allocations: 270.5 kB / 436.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.299, allocations: 0 / 436.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.118e-05/0.299, allocations: 4 kB / 436.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.719e-05/0.299, allocations: 12.44 kB / 436.9 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004356/0.2995, allocations: 189.6 kB / 437.1 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/0.3006, allocations: 0.7592 MB / 437.9 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003574/0.301, allocations: 166.5 kB / 438 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002032/0.3012, allocations: 96.8 kB / 438.1 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.81e-05/0.3013, allocations: 16.3 kB / 438.2 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.3013, allocations: 42.44 kB / 438.2 MB, free: 180 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.443e-06/0.3013, allocations: 0 / 438.2 MB, free: 180 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.00148/0.3028, allocations: 0.6577 MB / 438.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.792e-05/0.3028, allocations: 51.41 kB / 438.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002103/0.303, allocations: 217 kB / 439.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.295e-05/0.3031, allocations: 29.7 kB / 439.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.3032, allocations: 148.5 kB / 439.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.044e-05/0.3033, allocations: 87.28 kB / 439.4 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.185e-05/0.3033, allocations: 45.7 kB / 439.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.3035, allocations: 338.8 kB / 439.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002017/0.3037, allocations: 83.94 kB / 439.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002187/0.3039, allocations: 120.1 kB / 440 MB, free: 14.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004211/0.3043, allocations: 220.5 kB / 440.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.3043, allocations: 0 / 440.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005234/0.3049, allocations: 281.3 kB / 440.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.3049, allocations: 4 kB / 440.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.3049, allocations: 3.938 kB / 440.4 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/0.3049, allocations: 7.938 kB / 440.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002709/0.3052, allocations: 55.95 kB / 440.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.3052, allocations: 0 / 440.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001291/0.3053, allocations: 19.92 kB / 440.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.411e-05/0.3053, allocations: 15.98 kB / 440.5 MB, free: 13.71 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.0001404/0.3055, allocations: 141.8 kB / 440.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.565e-05/0.3056, allocations: 23.86 kB / 440.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006704/0.3062, allocations: 303.3 kB / 441 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.3062, allocations: 8 kB / 441 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.3062, allocations: 0 / 441 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.3062, allocations: 0 / 441 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.3073, allocations: 0.6392 MB / 441.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3073, allocations: 0 / 441.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002712/0.3076, allocations: 51.91 kB / 441.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.3076, allocations: 4 kB / 441.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.298e-05/0.3076, allocations: 7.984 kB / 441.7 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.3076, allocations: 11.88 kB / 441.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3076, allocations: 0 / 441.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008243/0.3084, allocations: 490.3 kB / 442.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.152e-05/0.3085, allocations: 39.86 kB / 442.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.652e-05/0.3086, allocations: 7.984 kB / 442.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001489/0.3087, allocations: 15.94 kB / 442.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.784e-05/0.3088, allocations: 19.95 kB / 442.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.3088, allocations: 8 kB / 442.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001438/0.3089, allocations: 152.5 kB / 442.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3089, allocations: 0 / 442.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002969/0.3092, allocations: 55.92 kB / 442.5 MB, free: 11.67 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.001168/0.3104, allocations: 1.023 MB / 443.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005012/0.3109, allocations: 218.2 kB / 443.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3109, allocations: 0 / 443.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002282/0.3111, allocations: 103.9 kB / 443.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003171/0.3114, allocations: 28.61 kB / 443.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003607/0.3151, allocations: 2.7 MB / 446.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001762/0.3152, allocations: 159.2 kB / 446.7 MB, free: 7.297 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001307/0.3154, allocations: 49.89 kB / 446.8 MB, free: 7.246 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001475/0.3155, allocations: 87.41 kB / 446.9 MB, free: 7.164 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3155, allocations: 0 / 446.9 MB, free: 7.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02858/0.3441, allocations: 4.815 MB / 451.7 MB, free: 2.508 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.25, allocations: 6.875 kB / 451.7 MB, free: 2.504 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --stepSize=5e-05 --timeout=50 --tolerance=1e-05 Modelica_4_1_0_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 52.5] 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: 14.393226918997243]