Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001934/0.001934, allocations: 103.6 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002139/0.002138, allocations: 214.4 kB / 18.59 MB, free: 4.402 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.481/1.481, allocations: 227.7 MB / 247.1 MB, free: 10.3 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.00192/0.00192, allocations: 69.45 kB / 307.4 MB, free: 400 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1052, allocations: 50.54 MB / 357.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004455/0.1097, allocations: 2.835 MB / 360.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001957/0.1117, allocations: 1.207 MB / 361.9 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.1119, allocations: 8 kB / 361.9 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001453/0.1133, allocations: 0.6107 MB / 362.6 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003268/0.1137, allocations: 135 kB / 362.7 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001231/0.1149, allocations: 0.6571 MB / 363.3 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003931/0.1153, allocations: 302.6 kB / 363.6 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004502/0.1158, allocations: 271 kB / 363.9 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001932/0.116, allocations: 135.5 kB / 364 MB, free: 7.664 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002133/0.1162, allocations: 167.4 kB / 364.2 MB, free: 7.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.185e-05/0.1162, allocations: 24 kB / 364.2 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003667/0.1166, allocations: 187.8 kB / 364.4 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.265e-05/0.1167, allocations: 63.77 kB / 364.5 MB, free: 7.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001561/0.1168, allocations: 151.2 kB / 364.6 MB, free: 7.082 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005865/0.1174, allocations: 0.4947 MB / 365.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.1174, allocations: 0 / 365.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1175, allocations: 0 / 365.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.1175, allocations: 0 / 365.1 MB, free: 6.586 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001612/0.1191, allocations: 0.7255 MB / 365.8 MB, free: 5.809 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.1191, allocations: 8.031 kB / 365.8 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.486e-05/0.1192, allocations: 66.72 kB / 365.9 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007912/0.12, allocations: 120.5 kB / 366 MB, free: 5.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003036/0.1203, allocations: 260.5 kB / 366.3 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.633e-05/0.1203, allocations: 25.03 kB / 366.3 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.13e-05/0.1204, allocations: 32.12 kB / 366.3 MB, free: 5.262 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005304/0.1209, allocations: 345 kB / 366.7 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.121, allocations: 3.984 kB / 366.7 MB, free: 4.914 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.919e-05/0.121, allocations: 12 kB / 366.7 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.121, allocations: 8 kB / 366.7 MB, free: 4.895 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000414/0.1214, allocations: 238.5 kB / 366.9 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.1234, allocations: 1.439 MB / 368.4 MB, free: 3.078 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007036/0.1242, allocations: 0.6985 MB / 369.1 MB, free: 2.262 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.1243, allocations: 108.8 kB / 369.2 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001844/0.1245, allocations: 166.2 kB / 369.3 MB, free: 1.953 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.1246, allocations: 38.5 kB / 369.4 MB, free: 1.906 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.803e-06/0.1246, allocations: 0 / 369.4 MB, free: 1.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001277/0.1259, allocations: 0.4907 MB / 369.9 MB, free: 1.391 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.032e-05/0.1259, allocations: 55.41 kB / 369.9 MB, free: 1.324 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002267/0.1261, allocations: 176.9 kB / 370.1 MB, free: 1.137 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.1262, allocations: 29.7 kB / 370.1 MB, free: 1.102 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.1263, allocations: 176 kB / 370.3 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.953e-05/0.1264, allocations: 82.75 kB / 370.4 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.679e-05/0.1265, allocations: 57.98 kB / 370.4 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.1266, allocations: 330.8 kB / 370.8 MB, free: 456 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.1268, allocations: 68.48 kB / 370.8 MB, free: 388 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.1269, allocations: 129 kB / 370.9 MB, free: 236 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1462/0.2731, allocations: 215.3 kB / 371.2 MB, free: 19.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.187e-05/0.2732, allocations: 4.703 kB / 371.2 MB, free: 19.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007519/0.2739, allocations: 328.1 kB / 371.5 MB, free: 19.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.2739, allocations: 7 kB / 371.5 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/0.274, allocations: 3.062 kB / 371.5 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003395/0.2743, allocations: 75.22 kB / 371.6 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001679/0.2745, allocations: 46.27 kB / 371.6 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001651/0.2761, allocations: 2.035 MB / 373.6 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.2763, allocations: 25.7 kB / 373.7 MB, free: 18.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/0.2763, allocations: 11.62 kB / 373.7 MB, free: 18.39 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * 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): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001302/0.2765, allocations: 152.4 kB / 373.8 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.559e-05/0.2765, allocations: 16.28 kB / 373.8 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006078/0.2771, allocations: 282 kB / 374.1 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.2771, allocations: 2.578 kB / 374.1 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2772, allocations: 2.062 kB / 374.1 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.2772, allocations: 6.203 kB / 374.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00105/0.2782, allocations: 0.6884 MB / 374.8 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.2782, allocations: 0.5625 kB / 374.8 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.2784, allocations: 22.81 kB / 374.8 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002659/0.2786, allocations: 80.73 kB / 374.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.2787, allocations: 7.562 kB / 374.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001787/0.2805, allocations: 2.029 MB / 377 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.2805, allocations: 4.938 kB / 377 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007303/0.2812, allocations: 446.2 kB / 377.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.73e-05/0.2813, allocations: 107 kB / 377.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.594e-05/0.2813, allocations: 6.062 kB / 377.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.2815, allocations: 5.984 kB / 377.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.617e-05/0.2815, allocations: 18.92 kB / 377.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.2815, allocations: 6.094 kB / 377.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001037/0.2816, allocations: 131.1 kB / 377.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.62e-07/0.2817, allocations: 0 / 377.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005855/0.2822, allocations: 103.2 kB / 377.8 MB, free: 15.43 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * 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 (15): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007973/0.2831, allocations: 1.001 MB / 378.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005708/0.2836, allocations: 362.3 kB / 379.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2836, allocations: 0 / 379.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002768/0.2839, allocations: 247.5 kB / 379.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003885/0.2843, allocations: 19.16 kB / 379.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002869/0.2872, allocations: 2.509 MB / 381.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002128/0.2874, allocations: 0.7561 MB / 382.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.2876, allocations: 22.72 kB / 382.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.939e-05/0.2877, allocations: 71.66 kB / 382.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2877, allocations: 0 / 382.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03347/0.3211, allocations: 5.022 MB / 387.8 MB, free: 11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.86/10.18, allocations: 5.922 kB / 387.8 MB, free: 10.99 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_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_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1)