Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.ShowVariableResistor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001441/0.001441, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001423/0.001423, allocations: 205.2 kB / 18.74 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.382/1.382, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.002262/0.002262, allocations: 67.84 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2765, allocations: 50.54 MB / 409.1 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004199/0.2807, allocations: 3.028 MB / 412.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.282, allocations: 0.74 MB / 412.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.2822, allocations: 11.94 kB / 412.9 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001644/0.2824, allocations: 51.44 kB / 412.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001903/0.2826, allocations: 107.1 kB / 413 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000295/0.2829, allocations: 99.81 kB / 413.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004519/0.2833, allocations: 414.1 kB / 413.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002248/0.2836, allocations: 107.1 kB / 413.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002642/0.2838, allocations: 155.4 kB / 413.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002069/0.2841, allocations: 167.3 kB / 413.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.153e-05/0.2841, allocations: 32 kB / 414 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.981e-05/0.2842, allocations: 40 kB / 414 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.145e-05/0.2843, allocations: 75.75 kB / 414.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001664/0.2845, allocations: 175.1 kB / 414.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004348/0.2849, allocations: 393.4 kB / 414.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2849, allocations: 4 kB / 414.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2849, allocations: 3.938 kB / 414.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.285, allocations: 0 / 414.6 MB, free: 11.77 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001014/0.286, allocations: 0.6428 MB / 415.3 MB, free: 11.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.286, allocations: 8.031 kB / 415.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.146e-05/0.2861, allocations: 70.67 kB / 415.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001736/0.2863, allocations: 48.69 kB / 415.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004089/0.2867, allocations: 291.7 kB / 415.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.2867, allocations: 16.94 kB / 415.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.026e-05/0.2868, allocations: 28.38 kB / 415.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005195/0.2873, allocations: 261 kB / 416 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.2873, allocations: 3.984 kB / 416 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.906e-05/0.2874, allocations: 12 kB / 416 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.2874, allocations: 8 kB / 416 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000501/0.2879, allocations: 214.1 kB / 416.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.2896, allocations: 0.9641 MB / 417.2 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005488/0.2901, allocations: 307.4 kB / 417.5 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002383/0.2904, allocations: 104.8 kB / 417.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.2904, allocations: 11.98 kB / 417.6 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.2904, allocations: 30.56 kB / 417.6 MB, free: 8.566 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.2905, allocations: 0 / 417.6 MB, free: 8.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001354/0.2918, allocations: 0.5669 MB / 418.2 MB, free: 7.953 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/0.2919, allocations: 55.41 kB / 418.3 MB, free: 7.887 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002946/0.2922, allocations: 262.6 kB / 418.5 MB, free: 7.625 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.2922, allocations: 29.7 kB / 418.5 MB, free: 7.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.2924, allocations: 184.2 kB / 418.7 MB, free: 7.406 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.214e-05/0.2925, allocations: 75.33 kB / 418.8 MB, free: 7.332 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.2926, allocations: 49.89 kB / 418.8 MB, free: 7.273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002303/0.2928, allocations: 334.8 kB / 419.2 MB, free: 6.938 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.293, allocations: 76.42 kB / 419.2 MB, free: 6.863 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002549/0.2933, allocations: 115.4 kB / 419.4 MB, free: 6.742 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004092/0.2937, allocations: 179.3 kB / 419.5 MB, free: 6.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.2937, allocations: 3.984 kB / 419.5 MB, free: 6.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006706/0.2944, allocations: 326.8 kB / 419.9 MB, free: 6.223 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.2944, allocations: 8 kB / 419.9 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.2944, allocations: 0 / 419.9 MB, free: 6.215 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000298/0.2947, allocations: 77.73 kB / 419.9 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002093/0.295, allocations: 39.91 kB / 420 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002812/0.2978, allocations: 3.049 MB / 423 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002088/0.298, allocations: 31.75 kB / 423.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.298, allocations: 11.94 kB / 423.1 MB, free: 2.727 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001723/0.2982, allocations: 149.8 kB / 423.2 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.481e-05/0.2983, allocations: 31.81 kB / 423.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.45e-05/0.2983, allocations: 26.19 kB / 423.3 MB, free: 2.508 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.2984, allocations: 4 kB / 423.3 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.417e-06/0.2984, allocations: 3.984 kB / 423.3 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.2984, allocations: 0 / 423.3 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.2995, allocations: 0.6835 MB / 424 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/0.2995, allocations: 0 / 424 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001283/0.2996, allocations: 27.98 kB / 424 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002046/0.2998, allocations: 69.61 kB / 424.1 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.2999, allocations: 12 kB / 424.1 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002656/0.3025, allocations: 3.044 MB / 427.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3026, allocations: 0 / 427.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006449/0.3032, allocations: 388.6 kB / 427.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.855e-05/0.3033, allocations: 105 kB / 427.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.878e-05/0.3033, allocations: 4.188 kB / 427.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.3036, allocations: 31.97 kB / 427.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.158e-05/0.3037, allocations: 19.97 kB / 427.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.3037, allocations: 12 kB / 427.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002224/0.3039, allocations: 186 kB / 427.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3039, allocations: 0 / 427.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003909/0.3043, allocations: 95.83 kB / 427.9 MB, free: 13.45 MB / 350.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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001/0.3053, allocations: 0.9206 MB / 428.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008268/0.3062, allocations: 449.1 kB / 429.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.3062, allocations: 0 / 429.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004664/0.3067, allocations: 354.6 kB / 429.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003896/0.3071, allocations: 44.67 kB / 429.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003752/0.3108, allocations: 2.713 MB / 432.4 MB, free: 8.797 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004165/0.3113, allocations: 0.7678 MB / 433.2 MB, free: 8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001245/0.3114, allocations: 26.28 kB / 433.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.3115, allocations: 87.41 kB / 433.3 MB, free: 7.887 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3115, allocations: 4 kB / 433.3 MB, free: 7.883 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04784/0.3594, allocations: 6.461 MB / 439.7 MB, free: 1.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.908/10.27, allocations: 13.69 kB / 439.8 MB, free: 1.625 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1)