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.00126/0.00126, 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.00131/0.00131, 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.459/1.459, allocations: 227.7 MB / 247.2 MB, free: 10.25 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: 67.89 kB / 358.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2831, allocations: 50.55 MB / 409.1 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003595/0.2867, allocations: 2.142 MB / 411.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.2878, allocations: 0.6156 MB / 411.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.754e-05/0.2879, allocations: 4 kB / 411.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.2881, allocations: 19.8 kB / 411.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.837e-05/0.2882, allocations: 47.56 kB / 411.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002458/0.2884, allocations: 55.86 kB / 411.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002129/0.2887, allocations: 159.2 kB / 412.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.2888, allocations: 57.45 kB / 412.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001723/0.289, allocations: 67.77 kB / 412.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.2891, allocations: 67.7 kB / 412.3 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/0.2892, allocations: 12 kB / 412.3 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.775e-05/0.2893, allocations: 27.98 kB / 412.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.447e-05/0.2893, allocations: 31.86 kB / 412.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.638e-05/0.2894, allocations: 75.55 kB / 412.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002614/0.2897, allocations: 178.3 kB / 412.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2897, allocations: 0 / 412.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2897, allocations: 0 / 412.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.2897, allocations: 0 / 412.6 MB, free: 13.96 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.0006558/0.2904, allocations: 443 kB / 413 MB, free: 13.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.2904, allocations: 12.03 kB / 413.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.772e-05/0.2905, allocations: 46.73 kB / 413.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001762/0.2907, allocations: 24.84 kB / 413.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/0.291, allocations: 212.1 kB / 413.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.979e-05/0.291, allocations: 4.609 kB / 413.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.047e-05/0.291, allocations: 12.38 kB / 413.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002501/0.2913, allocations: 127.6 kB / 413.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.2913, allocations: 0 / 413.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.2913, allocations: 4 kB / 413.5 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.433e-05/0.2914, allocations: 8 kB / 413.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.2915, allocations: 72.67 kB / 413.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008772/0.2924, allocations: 0.6018 MB / 414.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002856/0.2927, allocations: 86.62 kB / 414.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.098e-05/0.2928, allocations: 32.97 kB / 414.3 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/0.2928, allocations: 4 kB / 414.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.2929, allocations: 30.56 kB / 414.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.633e-06/0.2929, allocations: 0 / 414.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.000719/0.2936, allocations: 259.4 kB / 414.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.2937, allocations: 55.41 kB / 414.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.2938, allocations: 158.7 kB / 414.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.2938, allocations: 29.64 kB / 414.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.561e-05/0.2939, allocations: 132.1 kB / 414.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.294, allocations: 19.84 kB / 414.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.543e-05/0.294, allocations: 25.66 kB / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.2942, allocations: 318.8 kB / 415.3 MB, free: 11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.832e-05/0.2942, allocations: 23.98 kB / 415.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.896e-05/0.2943, allocations: 42.55 kB / 415.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001495/0.2945, allocations: 70.5 kB / 415.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2945, allocations: 0 / 415.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002891/0.2948, allocations: 138.3 kB / 415.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.2948, allocations: 8.188 kB / 415.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.2948, allocations: 64 / 415.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002078/0.295, allocations: 44.77 kB / 415.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.431e-05/0.2951, allocations: 11.94 kB / 415.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001837/0.297, allocations: 1.682 MB / 417.3 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.829e-05/0.297, allocations: 7.953 kB / 417.3 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.2971, allocations: 7.984 kB / 417.3 MB, free: 8.801 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 0.0001177/0.2972, allocations: 129.8 kB / 417.4 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.266e-05/0.2972, allocations: 7.953 kB / 417.4 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.961e-05/0.2973, allocations: 8.719 kB / 417.5 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.2973, allocations: 8.031 kB / 417.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-06/0.2973, allocations: 0 / 417.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.2973, allocations: 0 / 417.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002466/0.2975, allocations: 209.5 kB / 417.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.2975, allocations: 0 / 417.7 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.104e-05/0.2976, allocations: 11.98 kB / 417.7 MB, free: 8.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001281/0.2977, allocations: 32.84 kB / 417.7 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.2977, allocations: 7.984 kB / 417.7 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001518/0.2993, allocations: 1.678 MB / 419.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.2993, allocations: 4.031 kB / 419.4 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003324/0.2996, allocations: 224.2 kB / 419.6 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.185e-05/0.2997, allocations: 81.06 kB / 419.7 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.2997, allocations: 4 kB / 419.7 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.2998, allocations: 7.984 kB / 419.7 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.535e-05/0.2999, allocations: 3.938 kB / 419.7 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.2999, allocations: 8 kB / 419.7 MB, free: 6.156 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001005/0.3, allocations: 122.5 kB / 419.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3, allocations: 0 / 419.8 MB, free: 6.039 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003505/0.3004, allocations: 43.89 kB / 419.9 MB, free: 5.996 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.0006997/0.3011, allocations: 0.7444 MB / 420.6 MB, free: 5.223 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004419/0.3015, allocations: 194.6 kB / 420.8 MB, free: 5.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3015, allocations: 0 / 420.8 MB, free: 5.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002327/0.3018, allocations: 154.6 kB / 421 MB, free: 4.855 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.302, allocations: 15.53 kB / 421 MB, free: 4.844 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002233/0.3043, allocations: 1.729 MB / 422.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004783/0.3048, allocations: 0.708 MB / 423.4 MB, free: 2.277 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.222e-05/0.3048, allocations: 4.438 kB / 423.4 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.132e-05/0.3049, allocations: 35.42 kB / 423.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3049, allocations: 4 kB / 423.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03096/0.3359, allocations: 3.057 MB / 426.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.52, allocations: 7.922 kB / 426.5 MB, free: 15.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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)