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.00127/0.00127, allocations: 105.9 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001289/0.001289, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2212/0.2212, allocations: 46.12 MB / 344.2 MB, free: 11.55 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.002341/0.002341, allocations: 85 kB / 417.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1128, allocations: 62.46 MB / 480.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.002896/0.1157, allocations: 1.559 MB / 481.8 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002425/0.116, allocations: 79.72 kB / 481.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.806e-05/0.1161, allocations: 0 / 481.8 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.549e-05/0.1162, allocations: 7.938 kB / 481.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.867e-05/0.1162, allocations: 3.938 kB / 481.9 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000124/0.1163, allocations: 15.92 kB / 481.9 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001011/0.1165, allocations: 35.92 kB / 481.9 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.523e-05/0.1166, allocations: 19.91 kB / 481.9 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.69e-05/0.1166, allocations: 12 kB / 481.9 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.973e-05/0.1166, allocations: 15.86 kB / 482 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.611e-05/0.1167, allocations: 4 kB / 482 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.237e-05/0.1167, allocations: 4 kB / 482 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.585e-05/0.1167, allocations: 4 kB / 482 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.258e-05/0.1167, allocations: 15.88 kB / 482 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.811e-05/0.1168, allocations: 36.16 kB / 482 MB, free: 3.312 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1168, allocations: 0 / 482 MB, free: 3.312 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1169, allocations: 0 / 482 MB, free: 3.312 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.1169, allocations: 0 / 482 MB, free: 3.312 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004505/0.1173, allocations: 355.4 kB / 482.4 MB, free: 2.914 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.1174, allocations: 12.03 kB / 482.4 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.448e-05/0.1174, allocations: 30.75 kB / 482.4 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.577e-05/0.1174, allocations: 8.844 kB / 482.4 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001866/0.1176, allocations: 184.2 kB / 482.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.604e-06/0.1176, allocations: 384 / 482.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.845e-05/0.1177, allocations: 8.312 kB / 482.6 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001629/0.1178, allocations: 72.81 kB / 482.7 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.1179, allocations: 11.88 kB / 482.7 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.604e-06/0.1179, allocations: 0 / 482.7 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.1179, allocations: 0 / 482.7 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.584e-05/0.118, allocations: 27.92 kB / 482.7 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005197/0.1185, allocations: 449.2 kB / 483.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001515/0.1187, allocations: 42.5 kB / 483.2 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.071e-05/0.1187, allocations: 16.86 kB / 483.2 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.326e-05/0.1188, allocations: 0 / 483.2 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.1188, allocations: 34.56 kB / 483.2 MB, free: 1.895 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.1188, allocations: 4 kB / 483.2 MB, free: 1.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004522/0.1193, allocations: 105.5 kB / 483.3 MB, free: 1.781 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.694e-05/0.1193, allocations: 51.41 kB / 483.4 MB, free: 1.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.1194, allocations: 113.8 kB / 483.5 MB, free: 1.598 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.1194, allocations: 29.7 kB / 483.5 MB, free: 1.562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.288e-05/0.1195, allocations: 95.97 kB / 483.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.583e-05/0.1195, allocations: 15.81 kB / 483.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.002e-05/0.1196, allocations: 21.72 kB / 483.7 MB, free: 1.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1197, allocations: 318.8 kB / 484 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.734e-05/0.1198, allocations: 19.98 kB / 484 MB, free: 1.082 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.702e-05/0.1199, allocations: 35.42 kB / 484 MB, free: 1.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001256/0.12, allocations: 63.36 kB / 484.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.12, allocations: 4 kB / 484.1 MB, free: 0.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001832/0.1202, allocations: 85.78 kB / 484.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.1202, allocations: 8 kB / 484.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1202, allocations: 4 kB / 484.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.1202, allocations: 0 / 484.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.648e-05/0.1203, allocations: 20.08 kB / 484.2 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.1203, allocations: 0 / 484.2 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.181e-05/0.1204, allocations: 4.047 kB / 484.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.1204, allocations: 3.984 kB / 484.2 MB, free: 0.8281 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 (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 9.717e-05/0.1205, allocations: 121.7 kB / 484.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.698e-05/0.1205, allocations: 4 kB / 484.3 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.768e-05/0.1206, allocations: 8.281 kB / 484.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1206, allocations: 3.938 kB / 484.4 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1206, allocations: 4 kB / 484.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.1206, allocations: 7.984 kB / 484.4 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001904/0.1208, allocations: 173.5 kB / 484.5 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1208, allocations: 0 / 484.5 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.667e-05/0.1209, allocations: 8 kB / 484.5 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1209, allocations: 0 / 484.5 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.1209, allocations: 0 / 484.5 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1209, allocations: 4 kB / 484.6 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1209, allocations: 0 / 484.6 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002517/0.1212, allocations: 183.4 kB / 484.7 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.096e-05/0.1212, allocations: 77.11 kB / 484.8 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.1213, allocations: 4 kB / 484.8 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.71e-05/0.1213, allocations: 11.92 kB / 484.8 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.407e-05/0.1213, allocations: 0 / 484.8 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-06/0.1214, allocations: 0 / 484.8 MB, free: 136 kB / 350.1 MB Notification: Performance of sorting global known variables: time 6.656e-05/0.1214, allocations: 91.27 kB / 484.9 MB, free: 44 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1214, allocations: 0 / 484.9 MB, free: 44 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002347/0.1217, allocations: 11.94 kB / 484.9 MB, free: 32 kB / 350.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.0005602/0.1222, allocations: 0.7047 MB / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001587/0.1224, allocations: 39.92 kB / 485.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1224, allocations: 256 / 485.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.922e-05/0.1225, allocations: 23.92 kB / 485.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/0.1228, allocations: 6.062 kB / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.1243, allocations: 1.372 MB / 487.1 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.1246, allocations: 0.6807 MB / 487.7 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.272e-05/0.1247, allocations: 7.984 kB / 487.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.959e-05/0.1247, allocations: 15.44 kB / 487.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of SimCode: time 4e-07/0.1247, allocations: 288 / 487.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02407/0.1488, allocations: 1.474 MB / 489.2 MB, free: 11.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.602/7.751, allocations: 14.89 kB / 489.3 MB, free: 11.62 MB / 366.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)