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.001327/0.001327, allocations: 118.7 kB / 18.5 MB, free: 4.602 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.001732/0.001732, allocations: 210.5 kB / 21.46 MB, free: 1.648 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.488/1.488, allocations: 230.5 MB / 254.7 MB, free: 14.99 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.001971/0.001971, allocations: 67.83 kB / 373.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1223, allocations: 53.31 MB / 426.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004012/0.1263, allocations: 2.23 MB / 429.1 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001627/0.1279, allocations: 0.7478 MB / 429.9 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001721/0.1281, allocations: 7.938 kB / 429.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002168/0.1283, allocations: 43.52 kB / 429.9 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000213/0.1285, allocations: 47.58 kB / 430 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003532/0.1289, allocations: 107.8 kB / 430.1 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003454/0.1292, allocations: 235.7 kB / 430.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002362/0.1295, allocations: 87.53 kB / 430.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002293/0.1297, allocations: 99.62 kB / 430.5 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/0.1299, allocations: 107.5 kB / 430.6 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.688e-05/0.1299, allocations: 16 kB / 430.6 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.13, allocations: 35.98 kB / 430.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.108e-05/0.1301, allocations: 63.77 kB / 430.7 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001245/0.1302, allocations: 103.3 kB / 430.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000406/0.1306, allocations: 254.7 kB / 431 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1306, allocations: 0 / 431 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1306, allocations: 0 / 431 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.1306, allocations: 0 / 431 MB, free: 0.6602 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.001043/0.1317, allocations: 0.5455 MB / 431.6 MB, free: 68 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.1317, allocations: 15.97 kB / 431.6 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2192/0.3509, allocations: 56 kB / 431.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002083/0.3511, allocations: 36.33 kB / 431.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003873/0.3515, allocations: 251.2 kB / 431.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.3515, allocations: 17.69 kB / 432 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.628e-05/0.3516, allocations: 22.41 kB / 432 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005816/0.3522, allocations: 255.2 kB / 432.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/0.3522, allocations: 8 kB / 432.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.474e-05/0.3522, allocations: 7.938 kB / 432.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.22e-05/0.3522, allocations: 13.78 kB / 432.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004785/0.3527, allocations: 194.1 kB / 432.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.3539, allocations: 0.8186 MB / 433.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000362/0.3542, allocations: 170.7 kB / 433.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.3544, allocations: 97.88 kB / 433.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.517e-05/0.3545, allocations: 89.59 kB / 433.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.3546, allocations: 38.75 kB / 433.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.613e-06/0.3546, allocations: 0.5312 kB / 433.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001378/0.3559, allocations: 0.7275 MB / 434.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.198e-05/0.356, allocations: 53.69 kB / 434.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001984/0.3562, allocations: 216.5 kB / 434.6 MB, free: 9.949 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.3562, allocations: 29.86 kB / 434.7 MB, free: 9.918 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.535e-05/0.3563, allocations: 162.7 kB / 434.8 MB, free: 9.812 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.684e-05/0.3563, allocations: 83.14 kB / 434.9 MB, free: 9.758 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.571e-05/0.3564, allocations: 53.77 kB / 435 MB, free: 9.738 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.399e-05/0.3565, allocations: 336.8 kB / 435.3 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000185/0.3567, allocations: 81.52 kB / 435.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.3569, allocations: 121.3 kB / 435.5 MB, free: 9.391 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003982/0.3573, allocations: 220.9 kB / 435.7 MB, free: 9.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.3573, allocations: 5.219 kB / 435.7 MB, free: 9.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005039/0.3578, allocations: 273.6 kB / 436 MB, free: 9.293 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.3578, allocations: 5.719 kB / 436 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.3578, allocations: 1.312 kB / 436 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.3578, allocations: 5.25 kB / 436 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002817/0.3581, allocations: 64.41 kB / 436.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.3581, allocations: 2.156 kB / 436.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.3582, allocations: 15.44 kB / 436.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.3583, allocations: 9.625 kB / 436.1 MB, free: 9.285 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.0001138/0.3584, allocations: 145.3 kB / 436.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.029e-05/0.3584, allocations: 27.31 kB / 436.3 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005841/0.359, allocations: 289.1 kB / 436.5 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.359, allocations: 4.016 kB / 436.5 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.359, allocations: 1.062 kB / 436.5 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.359, allocations: 2.203 kB / 436.5 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.3601, allocations: 0.6868 MB / 437.2 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3601, allocations: 0 / 437.2 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000286/0.3604, allocations: 52.25 kB / 437.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.3604, allocations: 1.938 kB / 437.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.066e-05/0.3604, allocations: 6.859 kB / 437.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.3604, allocations: 3.172 kB / 437.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3604, allocations: 11.47 kB / 437.3 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007625/0.3612, allocations: 485 kB / 437.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.765e-05/0.3613, allocations: 120.5 kB / 437.9 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.271e-05/0.3613, allocations: 6.344 kB / 437.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.3615, allocations: 16.03 kB / 437.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.002e-05/0.3615, allocations: 20.81 kB / 437.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.3615, allocations: 11.12 kB / 437.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001397/0.3617, allocations: 154.8 kB / 438.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3617, allocations: 4 kB / 438.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003315/0.362, allocations: 46.03 kB / 438.1 MB, free: 8.074 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.001022/0.363, allocations: 1.034 MB / 439.2 MB, free: 7.281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005237/0.3636, allocations: 222.5 kB / 439.4 MB, free: 7.227 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.3636, allocations: 1.156 kB / 439.4 MB, free: 7.227 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002285/0.3638, allocations: 107.1 kB / 439.5 MB, free: 7.207 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003541/0.3641, allocations: 22.47 kB / 439.5 MB, free: 7.195 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003255/0.3674, allocations: 2.696 MB / 442.2 MB, free: 5.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.3676, allocations: 0.7639 MB / 443 MB, free: 4.645 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001581/0.3678, allocations: 49.42 kB / 443 MB, free: 4.641 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001895/0.368, allocations: 87.55 kB / 443.1 MB, free: 4.578 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.368, allocations: 0 / 443.1 MB, free: 4.578 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0396/0.4076, allocations: 4.561 MB / 447.7 MB, free: 4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.697/9.104, allocations: 8.797 kB / 447.7 MB, free: 3.996 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.583163681905717] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y', 'der1.y', 'cosB.phi', 'cosBminus.phi', 'sinA.phi', 'sinAminus.phi'] 9.17721928562969 9.207129982 9.070552503 Calling exit ...