Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegratorForceState.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 trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001948/0.001948, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002184/0.002184, allocations: 197.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.603/1.603, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2695/0.2695, allocations: 46.12 MB / 344.3 MB, free: 11.45 MB / 286.1 MB Warning: Requested package Modelica 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.002623/0.002623, allocations: 79.86 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4885/0.4911, allocations: 62.45 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.003626/0.4948, allocations: 1.557 MB / 0.5321 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003228/0.4952, allocations: 78.47 kB / 0.5322 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.472e-05/0.4953, allocations: 0 / 0.5322 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001699/0.4955, allocations: 5.531 kB / 0.5322 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.657e-05/0.4956, allocations: 7.922 kB / 0.5322 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001708/0.4957, allocations: 25.06 kB / 0.5322 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000145/0.4959, allocations: 39.23 kB / 0.5323 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.496, allocations: 7.938 kB / 0.5323 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.843e-05/0.4961, allocations: 21.58 kB / 0.5323 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.88e-05/0.4961, allocations: 9.922 kB / 0.5323 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.793e-05/0.4962, allocations: 3.875 kB / 0.5323 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.234e-05/0.4962, allocations: 1.688 kB / 0.5323 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.618e-05/0.4962, allocations: 9.922 kB / 0.5323 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.781e-05/0.4962, allocations: 14.88 kB / 0.5323 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001408/0.4964, allocations: 39.7 kB / 0.5324 GB, free: 11.94 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.4964, allocations: 7.922 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4964, allocations: 0 / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.4964, allocations: 1.031 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005954/0.497, allocations: 348.8 kB / 0.5327 GB, free: 11.55 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.4971, allocations: 8.719 kB / 0.5327 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.883e-05/0.4972, allocations: 35.92 kB / 0.5328 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.448e-05/0.4972, allocations: 8.516 kB / 0.5328 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003458/0.4976, allocations: 186.4 kB / 0.5329 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.4976, allocations: 9.969 kB / 0.5329 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.4976, allocations: 2.875 kB / 0.5329 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001988/0.4978, allocations: 70.47 kB / 0.533 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.4978, allocations: 3.938 kB / 0.533 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.4979, allocations: 1.281 kB / 0.533 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.4979, allocations: 1.5 kB / 0.533 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000108/0.498, allocations: 29.45 kB / 0.5331 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006514/0.4986, allocations: 447.9 kB / 0.5335 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/0.4989, allocations: 43 kB / 0.5335 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.006e-05/0.4989, allocations: 19.77 kB / 0.5335 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.66e-05/0.499, allocations: 0 / 0.5335 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.22e-05/0.499, allocations: 32.5 kB / 0.5336 GB, free: 10.63 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 9.81e-07/0.499, allocations: 0 / 0.5336 GB, free: 10.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005699/0.4996, allocations: 109.1 kB / 0.5337 GB, free: 10.56 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.549e-05/0.4996, allocations: 51.41 kB / 0.5337 GB, free: 10.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.4998, allocations: 119.7 kB / 0.5338 GB, free: 10.39 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.278e-05/0.4998, allocations: 25.7 kB / 0.5339 GB, free: 10.36 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.006e-05/0.4999, allocations: 97.61 kB / 0.534 GB, free: 10.26 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.4999, allocations: 13.44 kB / 0.534 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.426e-05/0.5, allocations: 19.03 kB / 0.534 GB, free: 10.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002037/0.5002, allocations: 320.1 kB / 0.5343 GB, free: 9.906 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.962e-05/0.5002, allocations: 16.8 kB / 0.5343 GB, free: 9.898 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.396e-05/0.5003, allocations: 47.41 kB / 0.5344 GB, free: 9.852 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.5005, allocations: 62.8 kB / 0.5344 GB, free: 9.797 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.32e-07/0.5005, allocations: 384 / 0.5344 GB, free: 9.797 MB / 398.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001885/0.5007, allocations: 93.78 kB / 0.5345 GB, free: 9.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/0.5007, allocations: 5.5 kB / 0.5345 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.5007, allocations: 1.375 kB / 0.5345 GB, free: 9.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.5008, allocations: 5.312 kB / 0.5345 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.898e-05/0.5008, allocations: 13.61 kB / 0.5345 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.5008, allocations: 1.375 kB / 0.5345 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.027e-05/0.5009, allocations: 2.75 kB / 0.5345 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.5009, allocations: 2.75 kB / 0.5345 GB, free: 9.723 MB / 398.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 (7): * Single equations (assignments): 7 * 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.0001353/0.501, allocations: 124.6 kB / 0.5347 GB, free: 9.594 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.905e-05/0.5011, allocations: 6.703 kB / 0.5347 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.311e-05/0.5011, allocations: 9.281 kB / 0.5347 GB, free: 9.578 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.5011, allocations: 0 / 0.5347 GB, free: 9.578 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.5011, allocations: 5.359 kB / 0.5347 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.5011, allocations: 0 / 0.5347 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002434/0.5014, allocations: 175.2 kB / 0.5348 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.5014, allocations: 0 / 0.5348 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.132e-05/0.5015, allocations: 8.25 kB / 0.5348 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.5015, allocations: 1.375 kB / 0.5348 GB, free: 9.363 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.5015, allocations: 4 kB / 0.5349 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.5015, allocations: 0 / 0.5349 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.5015, allocations: 1.375 kB / 0.5349 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002882/0.5018, allocations: 177.7 kB / 0.535 GB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.961e-05/0.5019, allocations: 82.44 kB / 0.5351 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.778e-05/0.5019, allocations: 5.375 kB / 0.5351 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.469e-05/0.502, allocations: 5.359 kB / 0.5351 GB, free: 9.094 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.886e-05/0.502, allocations: 10.75 kB / 0.5351 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-06/0.502, allocations: 0 / 0.5351 GB, free: 9.086 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.534e-05/0.5021, allocations: 91.52 kB / 0.5352 GB, free: 9.004 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5021, allocations: 0 / 0.5352 GB, free: 9.004 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002264/0.5023, allocations: 9.438 kB / 0.5352 GB, free: 9 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (gain.y) * 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 (4): * Single equations (assignments): 4 * 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.0006947/0.503, allocations: 0.7046 MB / 0.5359 GB, free: 8.312 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001769/0.5032, allocations: 40.67 kB / 0.5359 GB, free: 8.297 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5032, allocations: 0 / 0.5359 GB, free: 8.297 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.316e-05/0.5033, allocations: 23.16 kB / 0.536 GB, free: 8.285 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002943/0.5036, allocations: 14.78 kB / 0.536 GB, free: 8.277 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00177/0.5054, allocations: 1.368 MB / 0.5373 GB, free: 6.949 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004389/0.5058, allocations: 0.6862 MB / 0.538 GB, free: 6.246 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.712e-05/0.5059, allocations: 6.594 kB / 0.538 GB, free: 6.242 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.11e-05/0.506, allocations: 14.69 kB / 0.538 GB, free: 6.23 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.506, allocations: 0 / 0.538 GB, free: 6.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02928/0.5352, allocations: 1.517 MB / 0.5395 GB, free: 5.395 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.77/9.306, allocations: 3.031 kB / 0.5395 GB, free: 5.395 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegratorForceState.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegratorForceState_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_IntegratorForceState.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1)