Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.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 trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001405/0.001405, allocations: 104.1 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.001352/0.001352, 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 trunk/package.mo): time 1.494/1.494, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2292/0.2292, allocations: 46.11 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica 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.002149/0.002149, allocations: 85.66 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1218, allocations: 62.45 MB / 480.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.003376/0.1252, allocations: 1.732 MB / 481.9 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002277/0.1255, allocations: 91.64 kB / 482 MB, free: 3.328 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.702e-05/0.1256, allocations: 4 kB / 482 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.97e-05/0.1256, allocations: 11.86 kB / 482 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.702e-05/0.1257, allocations: 23.8 kB / 482.1 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001054/0.1258, allocations: 23.95 kB / 482.1 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001486/0.126, allocations: 107.6 kB / 482.2 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000163/0.1262, allocations: 51.95 kB / 482.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.695e-05/0.1262, allocations: 43.84 kB / 482.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.801e-05/0.1263, allocations: 55.77 kB / 482.3 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.656e-05/0.1264, allocations: 12 kB / 482.3 MB, free: 3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.088e-05/0.1264, allocations: 16 kB / 482.4 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.273e-05/0.1264, allocations: 19.92 kB / 482.4 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.145e-05/0.1265, allocations: 47.8 kB / 482.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001648/0.1267, allocations: 119.8 kB / 482.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1267, allocations: 0 / 482.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1267, allocations: 0 / 482.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.1267, allocations: 3.938 kB / 482.6 MB, free: 2.797 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0006994/0.1274, allocations: 427.1 kB / 483 MB, free: 2.328 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.1275, allocations: 8.031 kB / 483 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.46e-05/0.1275, allocations: 46.67 kB / 483 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.715e-05/0.1276, allocations: 8.844 kB / 483 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.1277, allocations: 172.2 kB / 483.2 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.1277, allocations: 8.375 kB / 483.2 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.137e-05/0.1278, allocations: 12.38 kB / 483.2 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003375/0.1281, allocations: 126 kB / 483.3 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.1281, allocations: 7.938 kB / 483.3 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.127e-05/0.1281, allocations: 8 kB / 483.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.1282, allocations: 0 / 483.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003578/0.1285, allocations: 107.9 kB / 483.5 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007636/0.1293, allocations: 467.3 kB / 483.9 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002508/0.1296, allocations: 90.47 kB / 484 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000225/0.1298, allocations: 64.88 kB / 484.1 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.1298, allocations: 4 kB / 484.1 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.1299, allocations: 38.5 kB / 484.1 MB, free: 1.055 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.553e-06/0.1299, allocations: 0 / 484.1 MB, free: 1.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008462/0.1307, allocations: 271.3 kB / 484.4 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.1308, allocations: 51.41 kB / 484.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.1309, allocations: 121.8 kB / 484.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.1309, allocations: 33.7 kB / 484.6 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.578e-05/0.131, allocations: 108.1 kB / 484.7 MB, free: 428 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.117e-05/0.131, allocations: 15.75 kB / 484.7 MB, free: 412 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.137e-05/0.1311, allocations: 25.7 kB / 484.7 MB, free: 380 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.1312, allocations: 310.8 kB / 485 MB, free: 60 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/0.1314, allocations: 39.95 kB / 485.1 MB, free: 20 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.1316, allocations: 58.55 kB / 485.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.132, allocations: 98.62 kB / 485.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.132, allocations: 4 kB / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004439/0.1324, allocations: 146.3 kB / 485.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.1325, allocations: 4 kB / 485.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.1325, allocations: 3.984 kB / 485.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001676/0.1327, allocations: 20.92 kB / 485.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.1328, allocations: 23.97 kB / 485.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001203/0.134, allocations: 1.399 MB / 486.8 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.1341, allocations: 16.02 kB / 486.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.313e-06/0.1341, allocations: 7.938 kB / 486.8 MB, free: 14.07 MB / 366.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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001086/0.1343, allocations: 117.8 kB / 487 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.383e-05/0.1343, allocations: 11.84 kB / 487 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.126e-05/0.1343, allocations: 12.44 kB / 487 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1343, allocations: 7.984 kB / 487 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.1343, allocations: 0 / 487 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1343, allocations: 0 / 487 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000691/0.135, allocations: 424 kB / 487.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.1351, allocations: 4.031 kB / 487.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.116e-05/0.1352, allocations: 12.12 kB / 487.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.867e-05/0.1352, allocations: 32.77 kB / 487.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.335e-06/0.1353, allocations: 0 / 487.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001217/0.1365, allocations: 1.407 MB / 488.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.1365, allocations: 4.031 kB / 488.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004512/0.137, allocations: 245 kB / 489.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.873e-05/0.137, allocations: 81.02 kB / 489.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.137, allocations: 7.984 kB / 489.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.1372, allocations: 11.98 kB / 489.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.121e-05/0.1372, allocations: 11.98 kB / 489.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.107e-06/0.1372, allocations: 4 kB / 489.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.547e-05/0.1373, allocations: 91.22 kB / 489.3 MB, free: 11.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1373, allocations: 4 kB / 489.3 MB, free: 11.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002653/0.1376, allocations: 27.92 kB / 489.3 MB, free: 11.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 3 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008857/0.1385, allocations: 0.7682 MB / 490.1 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007736/0.1393, allocations: 210.7 kB / 490.3 MB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1393, allocations: 0 / 490.3 MB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004199/0.1397, allocations: 166.5 kB / 490.5 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005309/0.1403, allocations: 10 kB / 490.5 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003508/0.1438, allocations: 1.595 MB / 492.1 MB, free: 8.426 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005187/0.1443, allocations: 0.6963 MB / 492.8 MB, free: 7.703 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.67e-05/0.1444, allocations: 4 kB / 492.8 MB, free: 7.699 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.49e-05/0.1445, allocations: 23.42 kB / 492.8 MB, free: 7.676 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1445, allocations: 0 / 492.8 MB, free: 7.676 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02927/0.1738, allocations: 2.328 MB / 495.1 MB, free: 5.465 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.26/9.434, allocations: 11.36 kB / 495.1 MB, free: 5.457 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe 2>&1)