Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.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.Sources,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001327/0.001327, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00127/0.00127, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2271/0.2271, allocations: 46.11 MB / 344.2 MB, free: 11.59 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.002265/0.002265, allocations: 87.34 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1137, allocations: 62.44 MB / 480.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.003708/0.1174, allocations: 2.686 MB / 482.9 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.1186, allocations: 0.7868 MB / 483.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.1187, allocations: 4 kB / 483.7 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002029/0.1189, allocations: 71.36 kB / 483.8 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000207/0.1191, allocations: 111.1 kB / 483.9 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002351/0.1193, allocations: 107.8 kB / 484 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003794/0.1197, allocations: 410.6 kB / 484.4 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002225/0.12, allocations: 154.9 kB / 484.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/0.1201, allocations: 151.4 kB / 484.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001813/0.1203, allocations: 171.2 kB / 484.8 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.058e-05/0.1204, allocations: 32 kB / 484.9 MB, free: 496 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.545e-05/0.1204, allocations: 36 kB / 484.9 MB, free: 460 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.782e-05/0.1205, allocations: 75.7 kB / 485 MB, free: 384 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000158/0.1207, allocations: 183 kB / 485.2 MB, free: 200 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003754/0.1211, allocations: 422.5 kB / 485.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1211, allocations: 0 / 485.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1211, allocations: 0 / 485.6 MB, free: 15.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.1211, allocations: 0 / 485.6 MB, free: 15.78 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0009913/0.1221, allocations: 0.6706 MB / 486.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.1221, allocations: 8.031 kB / 486.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.322e-05/0.1222, allocations: 74.72 kB / 486.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.621e-05/0.1223, allocations: 48.38 kB / 486.4 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002784/0.1226, allocations: 278.5 kB / 486.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.149e-05/0.1226, allocations: 25.38 kB / 486.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.105e-05/0.1226, allocations: 32.38 kB / 486.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006159/0.1233, allocations: 366 kB / 487.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.1233, allocations: 0 / 487.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.1e-05/0.1233, allocations: 20 kB / 487.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.1233, allocations: 8 kB / 487.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006055/0.1239, allocations: 269.6 kB / 487.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001913/0.1259, allocations: 1.354 MB / 488.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004523/0.1263, allocations: 202.6 kB / 488.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002069/0.1265, allocations: 75.52 kB / 489 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.1266, allocations: 7.938 kB / 489 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.1266, allocations: 38.56 kB / 489 MB, free: 12.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.252e-06/0.1266, allocations: 0 / 489 MB, free: 12.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007375/0.1274, allocations: 253.1 kB / 489.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.784e-05/0.1274, allocations: 136.6 kB / 489.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003352/0.1278, allocations: 341.6 kB / 489.7 MB, free: 11.31 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.1278, allocations: 25.7 kB / 489.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.128, allocations: 239.6 kB / 490 MB, free: 11.04 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.092e-05/0.128, allocations: 59.19 kB / 490 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.501e-05/0.1281, allocations: 49.98 kB / 490.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1283, allocations: 346.7 kB / 490.4 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002362/0.1285, allocations: 84.5 kB / 490.5 MB, free: 10.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002762/0.1288, allocations: 165 kB / 490.7 MB, free: 10.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004799/0.1293, allocations: 247 kB / 490.9 MB, free: 10.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.1293, allocations: 0 / 490.9 MB, free: 10.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006242/0.1299, allocations: 325.1 kB / 491.2 MB, free: 9.691 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.13, allocations: 7.938 kB / 491.2 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.13, allocations: 4 kB / 491.2 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.13, allocations: 4 kB / 491.2 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003877/0.1304, allocations: 92.11 kB / 491.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.1304, allocations: 4 kB / 491.3 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000246/0.1307, allocations: 51.56 kB / 491.4 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.1307, allocations: 12 kB / 491.4 MB, free: 9.52 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001388/0.1308, allocations: 153.7 kB / 491.6 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.442e-05/0.1309, allocations: 27.62 kB / 491.6 MB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.201e-05/0.131, allocations: 34.41 kB / 491.6 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.131, allocations: 0 / 491.6 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.131, allocations: 8 kB / 491.6 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.131, allocations: 0 / 491.6 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007486/0.1318, allocations: 0.5959 MB / 492.2 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1318, allocations: 3.938 kB / 492.2 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000268/0.1321, allocations: 60.11 kB / 492.3 MB, free: 8.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.1321, allocations: 3.984 kB / 492.3 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.554e-05/0.1321, allocations: 11.94 kB / 492.3 MB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.224e-06/0.1321, allocations: 7.938 kB / 492.3 MB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1321, allocations: 0 / 492.3 MB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005444/0.1327, allocations: 390.6 kB / 492.7 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.445e-05/0.1328, allocations: 108.7 kB / 492.8 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.902e-05/0.1328, allocations: 11.94 kB / 492.8 MB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.133, allocations: 19.92 kB / 492.8 MB, free: 7.961 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.211e-05/0.1331, allocations: 15.97 kB / 492.8 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.1331, allocations: 8 kB / 492.8 MB, free: 7.938 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000226/0.1333, allocations: 231.2 kB / 493.1 MB, free: 7.715 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1333, allocations: 0 / 493.1 MB, free: 7.715 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003577/0.1337, allocations: 75.75 kB / 493.1 MB, free: 7.641 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008143/0.1345, allocations: 0.933 MB / 494.1 MB, free: 6.664 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005104/0.135, allocations: 207.9 kB / 494.3 MB, free: 6.461 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1351, allocations: 0 / 494.3 MB, free: 6.461 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002111/0.1353, allocations: 75.89 kB / 494.4 MB, free: 6.387 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004047/0.1357, allocations: 25.44 kB / 494.4 MB, free: 6.363 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00374/0.1394, allocations: 3.008 MB / 497.4 MB, free: 3.172 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003793/0.1398, allocations: 0.7714 MB / 498.2 MB, free: 2.375 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001059/0.1399, allocations: 30.11 kB / 498.2 MB, free: 2.348 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.1401, allocations: 107.4 kB / 498.3 MB, free: 2.242 MB / 366.1 MB Notification: Performance of SimCode: time 1.843e-06/0.1401, allocations: 0 / 498.3 MB, free: 2.242 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2225/0.3626, allocations: 4.839 MB / 0.4913 GB, free: 13.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.505/7.868, allocations: 9.562 kB / 0.4914 GB, free: 13.47 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1)