Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001961/0.001961, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002512/0.002512, allocations: 212.6 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.526/1.526, allocations: 230.6 MB / 258.3 MB, free: 8.047 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 64.77 kB / 378.6 MB, free: 3.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2753, allocations: 53.37 MB / 431.9 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00379/0.2791, allocations: 2.242 MB / 434.2 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001363/0.2805, allocations: 0.7556 MB / 434.9 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001184/0.2806, allocations: 7.938 kB / 434.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000175/0.2808, allocations: 51.45 kB / 435 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001808/0.281, allocations: 39.66 kB / 435 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003018/0.2813, allocations: 111.7 kB / 435.1 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003197/0.2816, allocations: 235.6 kB / 435.4 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002052/0.2818, allocations: 80.02 kB / 435.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002152/0.282, allocations: 99.56 kB / 435.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001745/0.2822, allocations: 111.5 kB / 435.6 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.737e-05/0.2822, allocations: 20 kB / 435.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.786e-05/0.2823, allocations: 35.98 kB / 435.7 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.118e-05/0.2824, allocations: 51.78 kB / 435.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001108/0.2825, allocations: 115.3 kB / 435.9 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003447/0.2828, allocations: 247.6 kB / 436.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2829, allocations: 7.938 kB / 436.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2829, allocations: 0 / 436.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.2829, allocations: 0 / 436.1 MB, free: 2.715 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.0009499/0.2838, allocations: 489.4 kB / 436.6 MB, free: 2.207 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.2839, allocations: 12.03 kB / 436.6 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.932e-05/0.2839, allocations: 54.73 kB / 436.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.284, allocations: 36.73 kB / 436.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000295/0.2843, allocations: 198.7 kB / 436.9 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.819e-05/0.2843, allocations: 12.81 kB / 436.9 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.8e-05/0.2844, allocations: 24.36 kB / 436.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005128/0.2849, allocations: 254.8 kB / 437.2 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.2849, allocations: 0 / 437.2 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.576e-05/0.285, allocations: 12 kB / 437.2 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.587e-05/0.285, allocations: 12.44 kB / 437.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004467/0.2854, allocations: 193.5 kB / 437.4 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.2866, allocations: 0.7904 MB / 438.2 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003723/0.287, allocations: 174.4 kB / 438.3 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002136/0.2872, allocations: 100.8 kB / 438.4 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.096e-05/0.2873, allocations: 8.359 kB / 438.4 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.039e-05/0.2873, allocations: 50.5 kB / 438.5 MB, free: 184 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.493e-06/0.2873, allocations: 0 / 438.5 MB, free: 184 kB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001528/0.2888, allocations: 0.6459 MB / 439.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.2889, allocations: 55.41 kB / 439.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002204/0.2891, allocations: 217 kB / 439.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.2891, allocations: 33.7 kB / 439.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.2892, allocations: 144.5 kB / 439.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.84e-05/0.2893, allocations: 95.2 kB / 439.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.992e-05/0.2894, allocations: 45.7 kB / 439.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.2895, allocations: 338.8 kB / 440 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002053/0.2897, allocations: 83.94 kB / 440.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002231/0.29, allocations: 124.1 kB / 440.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004241/0.2904, allocations: 219.2 kB / 440.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.2904, allocations: 0 / 440.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005638/0.2909, allocations: 276.5 kB / 440.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.291, allocations: 8 kB / 440.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.291, allocations: 0 / 440.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.291, allocations: 4 kB / 440.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002775/0.2913, allocations: 63.89 kB / 440.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.2913, allocations: 0 / 440.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.2914, allocations: 19.97 kB / 440.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.2914, allocations: 12.06 kB / 440.8 MB, free: 13.72 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.0001507/0.2916, allocations: 145.7 kB / 441 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.465e-05/0.2916, allocations: 35.77 kB / 441 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006454/0.2923, allocations: 291.3 kB / 441.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.2923, allocations: 7.938 kB / 441.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2923, allocations: 0 / 441.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.2923, allocations: 4 kB / 441.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001099/0.2934, allocations: 0.6508 MB / 442 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.2934, allocations: 3.984 kB / 442 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002886/0.2937, allocations: 59.91 kB / 442 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.2937, allocations: 0 / 442 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.55e-05/0.2937, allocations: 8.062 kB / 442 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.2937, allocations: 7.969 kB / 442 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.2937, allocations: 0 / 442 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008403/0.2945, allocations: 482.4 kB / 442.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.295e-05/0.2946, allocations: 43.84 kB / 442.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.672e-05/0.2947, allocations: 12 kB / 442.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.2948, allocations: 15.92 kB / 442.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.628e-05/0.2949, allocations: 19.97 kB / 442.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.2949, allocations: 7.984 kB / 442.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001486/0.295, allocations: 152.5 kB / 442.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.295, allocations: 0 / 442.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002997/0.2953, allocations: 59.81 kB / 442.8 MB, free: 11.65 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.001228/0.2966, allocations: 1.023 MB / 443.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000487/0.2971, allocations: 207.9 kB / 444 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2971, allocations: 8 kB / 444.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002378/0.2973, allocations: 111.8 kB / 444.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.2976, allocations: 20.44 kB / 444.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/0.3014, allocations: 2.701 MB / 446.9 MB, free: 7.457 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000529/0.3019, allocations: 0.7639 MB / 447.6 MB, free: 6.664 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001436/0.3021, allocations: 49.89 kB / 447.7 MB, free: 6.613 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.3022, allocations: 87.41 kB / 447.8 MB, free: 6.527 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3022, allocations: 0 / 447.8 MB, free: 6.527 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02964/0.3318, allocations: 4.711 MB / 452.5 MB, free: 1.906 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.521/8.853, allocations: 4.062 kB / 452.5 MB, free: 1.902 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --stepSize=5e-05 --timeout=50 --tolerance=1e-05 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.31240806588903] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y', 'der1.y', 'cosB.phi', 'cosBminus.phi', 'sinA.phi', 'sinAminus.phi'] 8.92258473765105 8.939267444 8.653060878 Calling exit ...