Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001461/0.00146, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001324/0.001324, allocations: 210.4 kB / 18.58 MB, free: 4.578 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.517/1.517, allocations: 227.7 MB / 247 MB, free: 10.36 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.003002/0.003002, allocations: 64.69 kB / 307.3 MB, free: 440 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.123, allocations: 50.54 MB / 357.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003356/0.1263, allocations: 1.867 MB / 359.7 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008883/0.1273, allocations: 498.8 kB / 360.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.178e-05/0.1274, allocations: 3.938 kB / 360.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000101/0.1275, allocations: 15.86 kB / 360.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.219e-05/0.1275, allocations: 23.72 kB / 360.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001358/0.1277, allocations: 27.97 kB / 360.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001614/0.1279, allocations: 103.6 kB / 360.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.128, allocations: 53.34 kB / 360.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.279e-05/0.1281, allocations: 31.92 kB / 360.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.888e-05/0.1282, allocations: 47.72 kB / 360.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.353e-05/0.1282, allocations: 8 kB / 360.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.23e-05/0.1282, allocations: 12 kB / 360.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.707e-05/0.1283, allocations: 15.92 kB / 360.6 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.035e-05/0.1283, allocations: 59.72 kB / 360.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.1285, allocations: 91.92 kB / 360.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1285, allocations: 0 / 360.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1285, allocations: 0 / 360.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.1285, allocations: 0 / 360.7 MB, free: 11.02 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0005828/0.1291, allocations: 411.2 kB / 361.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.1291, allocations: 12.02 kB / 361.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.312e-05/0.1292, allocations: 38.75 kB / 361.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.582e-05/0.1292, allocations: 16.75 kB / 361.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002031/0.1294, allocations: 196.2 kB / 361.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.1295, allocations: 8.562 kB / 361.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.735e-05/0.1295, allocations: 12.12 kB / 361.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.1298, allocations: 119.3 kB / 361.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.1298, allocations: 0 / 361.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.1298, allocations: 7.984 kB / 361.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.1298, allocations: 4 kB / 361.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002303/0.1301, allocations: 67.95 kB / 361.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006641/0.1308, allocations: 0.5207 MB / 362.1 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002035/0.131, allocations: 82.55 kB / 362.2 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.1311, allocations: 36.83 kB / 362.2 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.133e-05/0.1311, allocations: 4 kB / 362.2 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.1312, allocations: 34.56 kB / 362.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.1312, allocations: 4 kB / 362.3 MB, free: 9.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004153/0.1316, allocations: 121.7 kB / 362.4 MB, free: 9.148 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.1316, allocations: 51.41 kB / 362.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.1318, allocations: 133.8 kB / 362.6 MB, free: 8.945 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.1318, allocations: 25.7 kB / 362.6 MB, free: 8.914 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.05e-05/0.1319, allocations: 119.8 kB / 362.7 MB, free: 8.793 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.462e-05/0.1319, allocations: 19.81 kB / 362.7 MB, free: 8.773 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.018e-05/0.132, allocations: 33.7 kB / 362.8 MB, free: 8.734 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1321, allocations: 322.8 kB / 363.1 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.1322, allocations: 31.97 kB / 363.1 MB, free: 8.379 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.1324, allocations: 64.27 kB / 363.2 MB, free: 8.301 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002506/0.1326, allocations: 116 kB / 363.3 MB, free: 8.172 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1326, allocations: 0 / 363.3 MB, free: 8.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003099/0.1329, allocations: 141.4 kB / 363.4 MB, free: 8.027 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.133, allocations: 4 kB / 363.4 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.133, allocations: 80 / 363.4 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.133, allocations: 4 kB / 363.4 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.1332, allocations: 27.98 kB / 363.4 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.1332, allocations: 3.984 kB / 363.5 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.115e-05/0.1333, allocations: 23.83 kB / 363.5 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-06/0.1333, allocations: 4 kB / 363.5 MB, free: 7.961 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.694e-05/0.1334, allocations: 125.8 kB / 363.6 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.155e-05/0.1334, allocations: 7.906 kB / 363.6 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.268e-05/0.1335, allocations: 12.36 kB / 363.6 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.1335, allocations: 7.984 kB / 363.6 MB, free: 7.801 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.1335, allocations: 0 / 363.6 MB, free: 7.801 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1335, allocations: 0 / 363.6 MB, free: 7.801 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002347/0.1337, allocations: 193.6 kB / 363.8 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1337, allocations: 0 / 363.8 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001459/0.1339, allocations: 27.97 kB / 363.8 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.684e-06/0.1339, allocations: 4 kB / 363.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.1339, allocations: 0 / 363.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.1339, allocations: 4 kB / 363.9 MB, free: 7.527 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1339, allocations: 4 kB / 363.9 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004295/0.1344, allocations: 231.3 kB / 364.1 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.624e-05/0.1344, allocations: 85.02 kB / 364.2 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.93e-05/0.1344, allocations: 4 kB / 364.2 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.535e-05/0.1345, allocations: 8.031 kB / 364.2 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.603e-05/0.1346, allocations: 7.984 kB / 364.2 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-06/0.1346, allocations: 7.938 kB / 364.2 MB, free: 7.152 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.003e-05/0.1347, allocations: 102.2 kB / 364.3 MB, free: 7.055 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1347, allocations: 7.938 kB / 364.3 MB, free: 7.047 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002476/0.1349, allocations: 23.84 kB / 364.3 MB, free: 7.023 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * 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 (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 Backend phase and start with SimCode phase: time 0.0006968/0.1356, allocations: 0.763 MB / 365.1 MB, free: 6.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002871/0.1359, allocations: 84.11 kB / 365.2 MB, free: 6.148 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.136, allocations: 4.062 kB / 365.2 MB, free: 6.145 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.1361, allocations: 31.92 kB / 365.2 MB, free: 6.113 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003746/0.1365, allocations: 19.98 kB / 365.2 MB, free: 6.094 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/0.1386, allocations: 1.719 MB / 366.9 MB, free: 4.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.139, allocations: 0.7041 MB / 367.6 MB, free: 3.539 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.683e-05/0.139, allocations: 8.422 kB / 367.7 MB, free: 3.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.005e-05/0.1391, allocations: 31.38 kB / 367.7 MB, free: 3.5 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1391, allocations: 0 / 367.7 MB, free: 3.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02562/0.1647, allocations: 2.353 MB / 370 MB, free: 1.273 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.393/8.557, allocations: 11.81 kB / 370.1 MB, free: 1.266 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1)