Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.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.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001565/0.001565, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001586/0.001586, allocations: 202 kB / 18.73 MB, free: 4.312 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.407/1.407, allocations: 227.7 MB / 247.2 MB, free: 10.22 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.002119/0.00212, allocations: 71.89 kB / 358.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2718, allocations: 50.54 MB / 409.1 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.004204/0.276, allocations: 2.885 MB / 412 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.2775, allocations: 0.7363 MB / 412.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001448/0.2776, allocations: 7.938 kB / 412.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001618/0.2778, allocations: 47.56 kB / 412.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001982/0.278, allocations: 103.2 kB / 412.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003135/0.2783, allocations: 111.8 kB / 413 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000452/0.2788, allocations: 394.5 kB / 413.4 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002498/0.2791, allocations: 123.2 kB / 413.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002907/0.2794, allocations: 155.5 kB / 413.6 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002154/0.2796, allocations: 167.2 kB / 413.8 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.686e-05/0.2796, allocations: 40 kB / 413.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.851e-05/0.2797, allocations: 36 kB / 413.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.364e-05/0.2798, allocations: 79.73 kB / 414 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.28, allocations: 163.2 kB / 414.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004954/0.2805, allocations: 429.3 kB / 414.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.2805, allocations: 0 / 414.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.2805, allocations: 0 / 414.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.2805, allocations: 4 kB / 414.5 MB, free: 11.88 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001381/0.2819, allocations: 0.6651 MB / 415.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.282, allocations: 12.03 kB / 415.2 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.517e-05/0.282, allocations: 50.73 kB / 415.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.7e-05/0.2821, allocations: 36.75 kB / 415.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004477/0.2826, allocations: 296.7 kB / 415.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.461e-05/0.2826, allocations: 20.94 kB / 415.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.671e-05/0.2827, allocations: 24.38 kB / 415.6 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007021/0.2834, allocations: 319.7 kB / 416 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.2834, allocations: 4 kB / 416 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.877e-05/0.2834, allocations: 8 kB / 416 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.2835, allocations: 8 kB / 416 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008129/0.2843, allocations: 278 kB / 416.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.2862, allocations: 1.116 MB / 417.4 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008894/0.2871, allocations: 246.6 kB / 417.6 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003363/0.2874, allocations: 100.8 kB / 417.7 MB, free: 8.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.852e-05/0.2875, allocations: 7.938 kB / 417.7 MB, free: 8.512 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004672/0.2879, allocations: 169 kB / 417.9 MB, free: 8.328 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.763e-06/0.2879, allocations: 0 / 417.9 MB, free: 8.328 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001085/0.289, allocations: 309.6 kB / 418.2 MB, free: 8.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/0.2891, allocations: 85.11 kB / 418.3 MB, free: 7.918 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.2894, allocations: 270.5 kB / 418.5 MB, free: 7.648 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.2894, allocations: 33.7 kB / 418.6 MB, free: 7.609 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001447/0.2896, allocations: 199.9 kB / 418.7 MB, free: 7.406 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.316e-05/0.2896, allocations: 43.64 kB / 418.8 MB, free: 7.363 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.753e-05/0.2897, allocations: 45.7 kB / 418.8 MB, free: 7.312 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.2899, allocations: 334.8 kB / 419.2 MB, free: 6.977 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003588/0.2902, allocations: 104.1 kB / 419.3 MB, free: 6.871 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004328/0.2907, allocations: 191.5 kB / 419.5 MB, free: 6.645 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000727/0.2914, allocations: 303 kB / 419.7 MB, free: 6.309 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2914, allocations: 4 kB / 419.8 MB, free: 6.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0009005/0.2924, allocations: 363 kB / 420.1 MB, free: 5.938 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.144e-05/0.2924, allocations: 33.7 kB / 420.1 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.2924, allocations: 4 kB / 420.1 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.2924, allocations: 4 kB / 420.1 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003115/0.2928, allocations: 67.88 kB / 420.2 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.2928, allocations: 8.062 kB / 420.2 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002884/0.2931, allocations: 55.75 kB / 420.3 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.403e-05/0.2931, allocations: 11.98 kB / 420.3 MB, free: 5.75 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * 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.0001543/0.2933, allocations: 149.7 kB / 420.4 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.426e-05/0.2933, allocations: 23.86 kB / 420.5 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.784e-05/0.2934, allocations: 21.7 kB / 420.5 MB, free: 5.543 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.2934, allocations: 8 kB / 420.5 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.912e-06/0.2934, allocations: 4 kB / 420.5 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.2934, allocations: 3.938 kB / 420.5 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003165/0.2937, allocations: 309.5 kB / 420.8 MB, free: 5.176 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2937, allocations: 0 / 420.8 MB, free: 5.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000253/0.294, allocations: 43.95 kB / 420.8 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.294, allocations: 3.938 kB / 420.8 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.294, allocations: 7.922 kB / 420.9 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.294, allocations: 4 kB / 420.9 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.294, allocations: 4 kB / 420.9 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/0.2952, allocations: 376.7 kB / 421.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.188e-05/0.2953, allocations: 96.94 kB / 421.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.167e-05/0.2953, allocations: 8 kB / 421.3 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/0.2956, allocations: 27.95 kB / 421.4 MB, free: 4.578 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.514e-05/0.2957, allocations: 23.98 kB / 421.4 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.2957, allocations: 4 kB / 421.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002267/0.2959, allocations: 190 kB / 421.6 MB, free: 4.367 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2959, allocations: 0 / 421.6 MB, free: 4.367 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003311/0.2963, allocations: 67.84 kB / 421.6 MB, free: 4.301 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (der_.c.v) * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001494/0.2978, allocations: 0.9012 MB / 422.5 MB, free: 3.371 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008357/0.2986, allocations: 299.6 kB / 422.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2986, allocations: 0 / 422.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003524/0.299, allocations: 99.86 kB / 422.9 MB, free: 2.969 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003326/0.2993, allocations: 55.73 kB / 423 MB, free: 2.918 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004687/0.304, allocations: 2.889 MB / 425.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003621/0.3044, allocations: 0.7595 MB / 426.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001394/0.3045, allocations: 26.28 kB / 426.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.3047, allocations: 83.41 kB / 426.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3047, allocations: 3.938 kB / 426.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02833/0.333, allocations: 5.537 MB / 432.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.908/8.241, allocations: 10.91 kB / 432.3 MB, free: 9.609 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OpAmps_Differentiator.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1)