Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001351/0.001351, allocations: 118 kB / 17.83 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001364/0.001364, allocations: 199.4 kB / 18.78 MB, free: 4.316 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.498/1.498, allocations: 230.5 MB / 250 MB, free: 9.094 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.002052/0.002052, allocations: 67.84 kB / 366.8 MB, free: 7.586 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2821, allocations: 53.3 MB / 420.1 MB, free: 8.305 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003855/0.286, allocations: 2.034 MB / 422.2 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001182/0.2872, allocations: 0.5415 MB / 422.7 MB, free: 5.719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.2873, allocations: 4 kB / 422.7 MB, free: 5.715 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001456/0.2875, allocations: 15.8 kB / 422.7 MB, free: 5.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.59e-05/0.2875, allocations: 27.72 kB / 422.8 MB, free: 5.672 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000355/0.2879, allocations: 55.88 kB / 422.8 MB, free: 5.617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002235/0.2881, allocations: 115.6 kB / 422.9 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/0.2883, allocations: 49.41 kB / 423 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.2884, allocations: 47.8 kB / 423 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001094/0.2885, allocations: 51.77 kB / 423.1 MB, free: 5.355 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.8e-05/0.2885, allocations: 16 kB / 423.1 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.391e-05/0.2886, allocations: 8 kB / 423.1 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.169e-05/0.2886, allocations: 27.91 kB / 423.1 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.416e-05/0.2887, allocations: 55.67 kB / 423.2 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002786/0.289, allocations: 126.4 kB / 423.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.289, allocations: 4 kB / 423.3 MB, free: 5.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.289, allocations: 0 / 423.3 MB, free: 5.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.289, allocations: 0 / 423.3 MB, free: 5.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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007775/0.2898, allocations: 425.9 kB / 423.7 MB, free: 4.664 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.2898, allocations: 12.03 kB / 423.7 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.895e-05/0.2899, allocations: 46.73 kB / 423.8 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.267e-05/0.2899, allocations: 16.84 kB / 423.8 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003273/0.2903, allocations: 208.1 kB / 424 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.2903, allocations: 12.38 kB / 424 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.722e-05/0.2903, allocations: 16.33 kB / 424 MB, free: 4.312 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005374/0.2909, allocations: 242.7 kB / 424.3 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.2909, allocations: 7.922 kB / 424.3 MB, free: 4.043 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.2909, allocations: 4 kB / 424.3 MB, free: 4.039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.2909, allocations: 7.938 kB / 424.3 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002607/0.2912, allocations: 83.88 kB / 424.4 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007619/0.2919, allocations: 0.5921 MB / 425 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003117/0.2922, allocations: 143.9 kB / 425.1 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.2924, allocations: 66.64 kB / 425.2 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.457e-05/0.2924, allocations: 11.98 kB / 425.2 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/0.2925, allocations: 34.5 kB / 425.2 MB, free: 2.988 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.2925, allocations: 4 kB / 425.2 MB, free: 2.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005465/0.293, allocations: 173.4 kB / 425.4 MB, free: 2.809 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.835e-05/0.2931, allocations: 122.9 kB / 425.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.2933, allocations: 122.1 kB / 425.6 MB, free: 2.531 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.2933, allocations: 29.7 kB / 425.7 MB, free: 2.496 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.261e-05/0.2934, allocations: 115.8 kB / 425.8 MB, free: 2.379 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.444e-05/0.2934, allocations: 27.78 kB / 425.8 MB, free: 2.352 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.922e-05/0.2935, allocations: 37.7 kB / 425.8 MB, free: 2.309 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.2937, allocations: 322.8 kB / 426.1 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.2938, allocations: 39.97 kB / 426.2 MB, free: 1.945 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.294, allocations: 124.8 kB / 426.3 MB, free: 1.777 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003087/0.2943, allocations: 176.7 kB / 426.5 MB, free: 1.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2943, allocations: 4 kB / 426.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003824/0.2947, allocations: 189.2 kB / 426.7 MB, free: 1.363 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.2947, allocations: 8.438 kB / 426.7 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.2947, allocations: 11.94 kB / 426.7 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.185e-05/0.2947, allocations: 4 kB / 426.7 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/0.2949, allocations: 39.92 kB / 426.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.2949, allocations: 7.984 kB / 426.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.295, allocations: 24.27 kB / 426.8 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.295, allocations: 12 kB / 426.8 MB, free: 1.258 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001358/0.2952, allocations: 133.7 kB / 426.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001514/0.2953, allocations: 89.52 kB / 427 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.774e-05/0.2954, allocations: 20.66 kB / 427 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.2954, allocations: 4 kB / 427 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.2954, allocations: 0 / 427 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.2954, allocations: 4 kB / 427 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002985/0.2957, allocations: 205.5 kB / 427.2 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2957, allocations: 0 / 427.2 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.2958, allocations: 31.97 kB / 427.3 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.2958, allocations: 4 kB / 427.3 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.2959, allocations: 7.938 kB / 427.3 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.294e-06/0.2959, allocations: 7.938 kB / 427.3 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2959, allocations: 4 kB / 427.3 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005761/0.2964, allocations: 366.4 kB / 427.6 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.316e-05/0.2965, allocations: 92.98 kB / 427.7 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.236e-05/0.2966, allocations: 19.98 kB / 427.7 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.2967, allocations: 4 kB / 427.7 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.313e-05/0.2967, allocations: 8.219 kB / 427.8 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.2967, allocations: 8 kB / 427.8 MB, free: 168 kB / 334.1 MB Notification: Performance of sorting global known variables: time 7.566e-05/0.2968, allocations: 95.27 kB / 427.9 MB, free: 72 kB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2968, allocations: 0 / 427.9 MB, free: 72 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003073/0.2971, allocations: 27.94 kB / 427.9 MB, free: 44 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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.000922/0.298, allocations: 0.9155 MB / 428.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003406/0.2984, allocations: 111.8 kB / 428.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2984, allocations: 0 / 428.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.928e-05/0.2985, allocations: 31.91 kB / 428.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005032/0.299, allocations: 46.69 kB / 429 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002736/0.3017, allocations: 2.031 MB / 431 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004887/0.3022, allocations: 0.7123 MB / 431.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.121e-05/0.3023, allocations: 12.64 kB / 431.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.675e-05/0.3023, allocations: 31.44 kB / 431.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3023, allocations: 4 kB / 431.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0297/0.332, allocations: 2.798 MB / 434.6 MB, free: 9.324 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.369/8.701, allocations: 2.953 kB / 434.6 MB, free: 9.324 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_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_ClockedWithDiscreteTextbookController.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1)