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.0015/0.0015, allocations: 117.9 kB / 18.5 MB, free: 4.52 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.00182/0.00182, allocations: 214.5 kB / 21.46 MB, free: 1.566 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.509/1.509, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.00207/0.00207, allocations: 67.84 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1181, allocations: 53.33 MB / 427 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003886/0.122, allocations: 2.235 MB / 429.2 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001526/0.1235, allocations: 0.7594 MB / 430 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001419/0.1236, allocations: 3.938 kB / 430 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001934/0.1238, allocations: 43.53 kB / 430 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002011/0.124, allocations: 43.59 kB / 430.1 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.1244, allocations: 103.8 kB / 430.2 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003182/0.1247, allocations: 235.7 kB / 430.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002127/0.1249, allocations: 83.61 kB / 430.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002252/0.1251, allocations: 107.6 kB / 430.6 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001683/0.1253, allocations: 107.5 kB / 430.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.546e-05/0.1253, allocations: 20 kB / 430.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.448e-05/0.1254, allocations: 28 kB / 430.8 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.995e-05/0.1255, allocations: 59.77 kB / 430.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.1256, allocations: 111.3 kB / 430.9 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003671/0.126, allocations: 250.8 kB / 431.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.126, allocations: 4 kB / 431.2 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.126, allocations: 0 / 431.2 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.126, allocations: 0 / 431.2 MB, free: 0.6055 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.001013/0.127, allocations: 0.5493 MB / 431.7 MB, free: 8 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.2165/0.3436, allocations: 9.172 kB / 431.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001636/0.3437, allocations: 56.88 kB / 431.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002614/0.344, allocations: 38.39 kB / 431.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003982/0.3444, allocations: 248 kB / 432.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.529e-05/0.3444, allocations: 16.12 kB / 432.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.242e-05/0.3445, allocations: 22.73 kB / 432.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000618/0.3451, allocations: 261.5 kB / 432.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.3451, allocations: 3.938 kB / 432.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.746e-05/0.3451, allocations: 6.312 kB / 432.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.427e-05/0.3452, allocations: 19.69 kB / 432.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005333/0.3457, allocations: 196.2 kB / 432.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.347, allocations: 0.8187 MB / 433.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003819/0.3474, allocations: 171.5 kB / 433.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002128/0.3476, allocations: 101.3 kB / 433.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.74e-05/0.3477, allocations: 88.34 kB / 433.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.798e-05/0.3477, allocations: 35.91 kB / 433.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.533e-06/0.3477, allocations: 3.781 kB / 433.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001466/0.3491, allocations: 0.7231 MB / 434.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.161e-05/0.3492, allocations: 54.66 kB / 434.6 MB, free: 9.969 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002216/0.3494, allocations: 214.3 kB / 434.8 MB, free: 9.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.3494, allocations: 30.2 kB / 434.8 MB, free: 9.832 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.227e-05/0.3495, allocations: 152.8 kB / 435 MB, free: 9.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.891e-05/0.3496, allocations: 86.55 kB / 435 MB, free: 9.691 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.519e-05/0.3497, allocations: 51.95 kB / 435.1 MB, free: 9.672 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.392e-05/0.3497, allocations: 333.8 kB / 435.4 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002115/0.3499, allocations: 86.92 kB / 435.5 MB, free: 9.359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002422/0.3502, allocations: 124 kB / 435.6 MB, free: 9.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004361/0.3506, allocations: 219.6 kB / 435.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.3506, allocations: 0 / 435.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005604/0.3512, allocations: 280.3 kB / 436.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.3512, allocations: 6.531 kB / 436.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.3512, allocations: 0 / 436.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.3512, allocations: 4.734 kB / 436.1 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002982/0.3515, allocations: 58.69 kB / 436.2 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.3515, allocations: 2.531 kB / 436.2 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001561/0.3517, allocations: 17.23 kB / 436.2 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.39e-05/0.3517, allocations: 11 kB / 436.2 MB, free: 9.203 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.0001347/0.3519, allocations: 149.5 kB / 436.4 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.366e-05/0.3519, allocations: 25 kB / 436.4 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006172/0.3525, allocations: 288.3 kB / 436.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.3525, allocations: 6.938 kB / 436.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3525, allocations: 5.047 kB / 436.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.3525, allocations: 1.094 kB / 436.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.3536, allocations: 0.6841 MB / 437.4 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.3536, allocations: 0 / 437.4 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002843/0.3539, allocations: 59.83 kB / 437.4 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.3539, allocations: 1.562 kB / 437.4 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.031e-05/0.3539, allocations: 11.16 kB / 437.4 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3539, allocations: 1.719 kB / 437.4 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.3539, allocations: 4.969 kB / 437.4 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008042/0.3547, allocations: 491 kB / 437.9 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.357e-05/0.3548, allocations: 120.4 kB / 438 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.264e-05/0.3549, allocations: 2.984 kB / 438 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.355, allocations: 12.3 kB / 438 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.131e-05/0.3551, allocations: 23.78 kB / 438.1 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.3551, allocations: 6.969 kB / 438.1 MB, free: 8.098 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001456/0.3553, allocations: 158.1 kB / 438.2 MB, free: 7.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3553, allocations: 0 / 438.2 MB, free: 7.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003492/0.3556, allocations: 47.52 kB / 438.3 MB, free: 7.988 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.001045/0.3567, allocations: 1.026 MB / 439.3 MB, free: 7.195 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005311/0.3572, allocations: 213.3 kB / 439.5 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3572, allocations: 1.062 kB / 439.5 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002335/0.3574, allocations: 112.9 kB / 439.6 MB, free: 7.121 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/0.3578, allocations: 23.48 kB / 439.6 MB, free: 7.109 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003248/0.361, allocations: 2.702 MB / 442.3 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002567/0.3613, allocations: 0.7635 MB / 443.1 MB, free: 4.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00016/0.3614, allocations: 50.94 kB / 443.2 MB, free: 4.562 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.3616, allocations: 87.44 kB / 443.2 MB, free: 4.5 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3616, allocations: 0 / 443.2 MB, free: 4.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03552/0.3971, allocations: 4.56 MB / 447.8 MB, free: 3.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.242/8.639, allocations: 14.16 kB / 447.8 MB, free: 3.918 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.SinCosEncoder_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 5e-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.272306730039418] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y', 'der1.y', 'cosB.phi', 'cosBminus.phi', 'sinA.phi', 'sinAminus.phi'] 8.708819749299437 8.728644636 8.59845016 Calling exit ...