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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001658/0.001658, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00162/0.00162, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.451/1.451, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB 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.002195/0.002195, allocations: 63.84 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3228, allocations: 50.54 MB / 409.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003961/0.3268, allocations: 2.216 MB / 411.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00159/0.3285, allocations: 0.7516 MB / 412 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001528/0.3286, allocations: 4 kB / 412 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002154/0.3289, allocations: 51.47 kB / 412.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001949/0.3291, allocations: 39.66 kB / 412.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003212/0.3294, allocations: 103.8 kB / 412.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003137/0.3298, allocations: 239.6 kB / 412.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002488/0.33, allocations: 107.6 kB / 412.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002196/0.3303, allocations: 99.56 kB / 412.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.3304, allocations: 107.5 kB / 412.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.901e-05/0.3305, allocations: 23.94 kB / 412.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001072/0.3306, allocations: 39.98 kB / 412.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.479e-05/0.3307, allocations: 51.84 kB / 412.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.3308, allocations: 111.3 kB / 413 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003772/0.3312, allocations: 257.9 kB / 413.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3312, allocations: 0 / 413.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3312, allocations: 0 / 413.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.3312, allocations: 0 / 413.2 MB, free: 13.14 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.001039/0.3323, allocations: 0.5532 MB / 413.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.3323, allocations: 8.031 kB / 413.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.043e-05/0.3324, allocations: 58.72 kB / 413.9 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001706/0.3326, allocations: 28.8 kB / 413.9 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003442/0.3329, allocations: 255.9 kB / 414.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.145e-05/0.333, allocations: 16.81 kB / 414.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.646e-05/0.333, allocations: 16.38 kB / 414.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005525/0.3336, allocations: 266.7 kB / 414.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.3336, allocations: 0 / 414.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.851e-05/0.3337, allocations: 12 kB / 414.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.816e-05/0.3337, allocations: 12.42 kB / 414.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004833/0.3342, allocations: 197.5 kB / 414.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.3355, allocations: 0.8148 MB / 415.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004022/0.3359, allocations: 190.9 kB / 415.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002512/0.3361, allocations: 108.8 kB / 415.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001275/0.3363, allocations: 93.45 kB / 415.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.443e-05/0.3363, allocations: 38.5 kB / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.543e-06/0.3363, allocations: 3.938 kB / 415.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001652/0.338, allocations: 0.7234 MB / 416.6 MB, free: 9.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.25e-05/0.3381, allocations: 55.41 kB / 416.7 MB, free: 9.453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002386/0.3383, allocations: 213 kB / 416.9 MB, free: 9.234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/0.3383, allocations: 33.7 kB / 416.9 MB, free: 9.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.3385, allocations: 144.5 kB / 417 MB, free: 9.051 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.327e-05/0.3385, allocations: 87.28 kB / 417.1 MB, free: 8.965 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.938e-05/0.3386, allocations: 49.7 kB / 417.2 MB, free: 8.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.3388, allocations: 338.8 kB / 417.5 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002114/0.339, allocations: 83.94 kB / 417.6 MB, free: 8.488 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002417/0.3393, allocations: 123.3 kB / 417.7 MB, free: 8.355 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004602/0.3398, allocations: 222.5 kB / 417.9 MB, free: 8.129 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3398, allocations: 4 kB / 417.9 MB, free: 8.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000576/0.3403, allocations: 277.2 kB / 418.2 MB, free: 7.848 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.3404, allocations: 8 kB / 418.2 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3404, allocations: 0 / 418.2 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.3404, allocations: 8.062 kB / 418.2 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003217/0.3407, allocations: 63.83 kB / 418.3 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.3408, allocations: 0 / 418.3 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.3409, allocations: 19.97 kB / 418.3 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.247e-05/0.3409, allocations: 12 kB / 418.3 MB, free: 7.738 MB / 334.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.0001543/0.3411, allocations: 137.7 kB / 418.5 MB, free: 7.594 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.159e-05/0.3411, allocations: 23.86 kB / 418.5 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006744/0.3418, allocations: 307.1 kB / 418.8 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.3418, allocations: 4 kB / 418.8 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3419, allocations: 0 / 418.8 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.3419, allocations: 0 / 418.8 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/0.3431, allocations: 0.683 MB / 419.5 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3431, allocations: 3.938 kB / 419.5 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002854/0.3434, allocations: 55.97 kB / 419.5 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.3434, allocations: 0 / 419.5 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.3434, allocations: 8 kB / 419.5 MB, free: 6.453 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.3434, allocations: 3.938 kB / 419.5 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3434, allocations: 0 / 419.5 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008575/0.3443, allocations: 493.9 kB / 420 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.3444, allocations: 113 kB / 420.1 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.349e-05/0.3445, allocations: 4 kB / 420.1 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.3446, allocations: 19.92 kB / 420.1 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.181e-05/0.3447, allocations: 19.97 kB / 420.2 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.3447, allocations: 8 kB / 420.2 MB, free: 5.766 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001665/0.3449, allocations: 164.5 kB / 420.3 MB, free: 5.605 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3449, allocations: 0 / 420.3 MB, free: 5.605 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003067/0.3452, allocations: 43.94 kB / 420.4 MB, free: 5.562 MB / 334.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.001271/0.3465, allocations: 1.03 MB / 421.4 MB, free: 4.504 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005411/0.3471, allocations: 220.1 kB / 421.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3471, allocations: 0 / 421.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002426/0.3473, allocations: 119.8 kB / 421.7 MB, free: 4.172 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003324/0.3477, allocations: 24.42 kB / 421.8 MB, free: 4.148 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003655/0.3513, allocations: 2.696 MB / 424.5 MB, free: 1.344 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004132/0.3518, allocations: 0.7678 MB / 425.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001493/0.3519, allocations: 45.91 kB / 425.3 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.3521, allocations: 83.41 kB / 425.4 MB, free: 432 kB / 334.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3521, allocations: 0 / 425.4 MB, free: 432 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02795/0.38, allocations: 4.515 MB / 429.9 MB, free: 11.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.296/8.676, allocations: 19.09 kB / 429.9 MB, free: 11.98 MB / 350.1 MB (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)