Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001345/0.001345, allocations: 117.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.00153/0.00153, allocations: 200.6 kB / 18.74 MB, free: 4.332 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.379/1.379, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.001901/0.001901, allocations: 63.91 kB / 358.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.262, allocations: 50.55 MB / 409.1 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002977/0.265, allocations: 2.158 MB / 411.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009151/0.2659, allocations: 0.6078 MB / 411.8 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.52e-05/0.266, allocations: 7.938 kB / 411.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.992e-05/0.2661, allocations: 19.78 kB / 411.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.975e-05/0.2662, allocations: 43.61 kB / 411.9 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002058/0.2664, allocations: 47.89 kB / 412 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000182/0.2666, allocations: 163.2 kB / 412.1 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.2668, allocations: 61.44 kB / 412.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.2669, allocations: 63.78 kB / 412.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001095/0.267, allocations: 71.62 kB / 412.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.467e-05/0.267, allocations: 16 kB / 412.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.981e-05/0.2671, allocations: 24 kB / 412.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.218e-05/0.2672, allocations: 31.84 kB / 412.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.885e-05/0.2672, allocations: 71.67 kB / 412.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002159/0.2675, allocations: 166.3 kB / 412.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2675, allocations: 0 / 412.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2675, allocations: 4 kB / 412.6 MB, free: 13.78 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.2675, allocations: 0 / 412.6 MB, free: 13.78 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005498/0.268, allocations: 447 kB / 413.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2681, allocations: 15.97 kB / 413.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.036e-05/0.2681, allocations: 38.75 kB / 413.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.2683, allocations: 32.83 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002419/0.2685, allocations: 216.1 kB / 413.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.2686, allocations: 8.609 kB / 413.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.16e-05/0.2686, allocations: 12.38 kB / 413.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002243/0.2688, allocations: 123.6 kB / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.2688, allocations: 0 / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.2689, allocations: 11.98 kB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.2689, allocations: 0 / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001804/0.2691, allocations: 80.67 kB / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007563/0.2698, allocations: 0.598 MB / 414.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002687/0.2701, allocations: 86.55 kB / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.588e-05/0.2702, allocations: 36.97 kB / 414.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/0.2702, allocations: 0 / 414.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.2702, allocations: 34.56 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 8.41e-07/0.2702, allocations: 0 / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006504/0.2709, allocations: 255.4 kB / 414.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/0.2709, allocations: 55.41 kB / 414.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.2711, allocations: 159.3 kB / 414.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.192e-05/0.2711, allocations: 33.7 kB / 414.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.001e-05/0.2712, allocations: 116.2 kB / 414.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.631e-05/0.2712, allocations: 23.83 kB / 415 MB, free: 11.17 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.379e-05/0.2713, allocations: 29.67 kB / 415 MB, free: 11.13 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.2714, allocations: 318.8 kB / 415.3 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.543e-05/0.2715, allocations: 23.98 kB / 415.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.463e-05/0.2715, allocations: 46.5 kB / 415.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001307/0.2717, allocations: 70.56 kB / 415.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2717, allocations: 0 / 415.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002803/0.272, allocations: 142.2 kB / 415.6 MB, free: 10.51 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.272, allocations: 7.281 kB / 415.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.272, allocations: 4 kB / 415.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001664/0.2722, allocations: 36.91 kB / 415.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.172e-05/0.2722, allocations: 11.98 kB / 415.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001471/0.2737, allocations: 1.682 MB / 417.3 MB, free: 8.625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.303e-05/0.2738, allocations: 7.984 kB / 417.3 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.2738, allocations: 4 kB / 417.3 MB, free: 8.613 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 9.578e-05/0.2739, allocations: 129.8 kB / 417.5 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.174e-05/0.2739, allocations: 7.953 kB / 417.5 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.094e-05/0.274, allocations: 16.7 kB / 417.5 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.274, allocations: 0 / 417.5 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-06/0.274, allocations: 0 / 417.5 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.274, allocations: 0 / 417.5 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002155/0.2742, allocations: 217.6 kB / 417.7 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.2742, allocations: 3.984 kB / 417.7 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.577e-05/0.2743, allocations: 7.984 kB / 417.7 MB, free: 8.184 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001159/0.2744, allocations: 36.84 kB / 417.7 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.2744, allocations: 0 / 417.7 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/0.2757, allocations: 1.682 MB / 419.4 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2757, allocations: 0 / 419.4 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002922/0.276, allocations: 216.2 kB / 419.6 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.64e-05/0.2761, allocations: 85.06 kB / 419.7 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.2761, allocations: 4.062 kB / 419.7 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.344e-05/0.2762, allocations: 8 kB / 419.7 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.607e-05/0.2762, allocations: 7.984 kB / 419.7 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.2762, allocations: 3.938 kB / 419.7 MB, free: 5.969 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.325e-05/0.2763, allocations: 122.6 kB / 419.9 MB, free: 5.852 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2763, allocations: 0 / 419.9 MB, free: 5.852 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003301/0.2767, allocations: 39.89 kB / 419.9 MB, free: 5.812 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005727/0.2772, allocations: 0.7483 MB / 420.6 MB, free: 5.035 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003551/0.2776, allocations: 190.6 kB / 420.8 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2776, allocations: 4 kB / 420.8 MB, free: 4.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002073/0.2778, allocations: 158.7 kB / 421 MB, free: 4.664 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002349/0.2781, allocations: 8.234 kB / 421 MB, free: 4.656 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001843/0.2799, allocations: 1.726 MB / 422.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002938/0.2802, allocations: 0.7119 MB / 423.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.641e-05/0.2803, allocations: 8.375 kB / 423.4 MB, free: 2.078 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.229e-05/0.2803, allocations: 27.42 kB / 423.5 MB, free: 2.051 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2803, allocations: 0 / 423.5 MB, free: 2.051 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1131/0.3934, allocations: 3.064 MB / 426.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.15, allocations: 8.828 kB / 426.5 MB, free: 15.11 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor_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_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1)