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.001302/0.001302, allocations: 121.8 kB / 17.84 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001383/0.001383, allocations: 199.5 kB / 18.79 MB, free: 4.289 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.486/1.486, allocations: 230.4 MB / 250 MB, free: 9.059 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.001932/0.001932, allocations: 67.83 kB / 366.8 MB, free: 7.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2993, allocations: 53.31 MB / 420.2 MB, free: 8.305 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003757/0.3031, allocations: 2.228 MB / 422.4 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.3045, allocations: 0.7556 MB / 423.1 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.3046, allocations: 4 kB / 423.1 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002054/0.3048, allocations: 51.45 kB / 423.2 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001991/0.305, allocations: 43.66 kB / 423.2 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003111/0.3053, allocations: 103.7 kB / 423.3 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003022/0.3056, allocations: 235.6 kB / 423.6 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.3058, allocations: 79.61 kB / 423.6 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000208/0.306, allocations: 103.6 kB / 423.7 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001652/0.3062, allocations: 111.5 kB / 423.9 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.852e-05/0.3062, allocations: 20 kB / 423.9 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001025/0.3063, allocations: 39.98 kB / 423.9 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.582e-05/0.3064, allocations: 47.84 kB / 424 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.3065, allocations: 115.3 kB / 424.1 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000398/0.3069, allocations: 249.9 kB / 424.3 MB, free: 4.125 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3069, allocations: 0 / 424.3 MB, free: 4.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3069, allocations: 0 / 424.3 MB, free: 4.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.3069, allocations: 0 / 424.3 MB, free: 4.125 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.0009546/0.3079, allocations: 0.5677 MB / 424.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.3079, allocations: 12.03 kB / 424.9 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.884e-05/0.308, allocations: 58.72 kB / 425 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.3081, allocations: 24.8 kB / 425 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000316/0.3084, allocations: 259.9 kB / 425.2 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.032e-05/0.3085, allocations: 16.81 kB / 425.2 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.186e-05/0.3085, allocations: 20.38 kB / 425.3 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004817/0.309, allocations: 258.7 kB / 425.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.309, allocations: 0 / 425.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.297e-05/0.309, allocations: 12 kB / 425.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.129e-05/0.3091, allocations: 12.42 kB / 425.5 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004507/0.3095, allocations: 197.5 kB / 425.7 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001191/0.3107, allocations: 0.8187 MB / 426.6 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000387/0.3111, allocations: 175.3 kB / 426.7 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/0.3113, allocations: 104.8 kB / 426.8 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001117/0.3114, allocations: 85.47 kB / 426.9 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.574e-05/0.3115, allocations: 38.5 kB / 427 MB, free: 1.293 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.333e-06/0.3115, allocations: 0 / 427 MB, free: 1.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001509/0.313, allocations: 0.7295 MB / 427.7 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/0.313, allocations: 51.41 kB / 427.7 MB, free: 460 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002539/0.3133, allocations: 217 kB / 427.9 MB, free: 232 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/0.3133, allocations: 29.7 kB / 428 MB, free: 196 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.3134, allocations: 148.5 kB / 428.1 MB, free: 44 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.577e-05/0.3135, allocations: 87.27 kB / 428.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.089e-05/0.3136, allocations: 49.7 kB / 428.3 MB, free: 15.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.3138, allocations: 338.8 kB / 428.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/0.314, allocations: 79.94 kB / 428.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002326/0.3142, allocations: 131.3 kB / 428.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004425/0.3146, allocations: 223.2 kB / 429 MB, free: 15.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.3146, allocations: 0 / 429 MB, free: 15.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005566/0.3152, allocations: 281.2 kB / 429.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.3152, allocations: 4 kB / 429.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.495e-06/0.3152, allocations: 4 kB / 429.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.3152, allocations: 4.062 kB / 429.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002796/0.3155, allocations: 59.89 kB / 429.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.3155, allocations: 4 kB / 429.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.3157, allocations: 15.98 kB / 429.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.3157, allocations: 11.98 kB / 429.4 MB, free: 14.73 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.0001531/0.3158, allocations: 137.7 kB / 429.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.786e-05/0.3159, allocations: 23.86 kB / 429.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006441/0.3165, allocations: 307.1 kB / 429.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.3165, allocations: 4 kB / 429.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3165, allocations: 0 / 429.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.3165, allocations: 0 / 429.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.3177, allocations: 0.683 MB / 430.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3177, allocations: 7.969 kB / 430.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002766/0.3179, allocations: 55.91 kB / 430.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.3179, allocations: 4 kB / 430.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.318, allocations: 4 kB / 430.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.092e-06/0.318, allocations: 7.938 kB / 430.6 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.318, allocations: 0 / 430.6 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008664/0.3188, allocations: 489.9 kB / 431.1 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.319, allocations: 117 kB / 431.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.563e-05/0.319, allocations: 8.188 kB / 431.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001503/0.3192, allocations: 19.92 kB / 431.2 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.358e-05/0.3192, allocations: 23.97 kB / 431.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.3192, allocations: 4 kB / 431.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001548/0.3194, allocations: 160.5 kB / 431.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3194, allocations: 4 kB / 431.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002946/0.3197, allocations: 44 kB / 431.5 MB, free: 12.55 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.001178/0.3209, allocations: 1.026 MB / 432.5 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000513/0.3214, allocations: 215.7 kB / 432.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3214, allocations: 0 / 432.7 MB, free: 11.28 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002374/0.3216, allocations: 111.8 kB / 432.8 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.3219, allocations: 31.02 kB / 432.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003624/0.3256, allocations: 2.695 MB / 435.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004348/0.326, allocations: 0.76 MB / 436.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001421/0.3261, allocations: 49.89 kB / 436.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.3263, allocations: 87.41 kB / 436.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3263, allocations: 0 / 436.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02993/0.3562, allocations: 4.568 MB / 441 MB, free: 2.938 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.127/8.483, allocations: 18.98 kB / 441 MB, free: 2.922 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)