Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.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.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_QuasiStatic_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.001564/0.001564, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001325/0.001325, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.551/1.551, 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.2211/0.2211, 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.002144/0.002144, allocations: 81.92 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1175, allocations: 62.44 MB / 480.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.00384/0.1214, allocations: 2.487 MB / 482.7 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.1231, allocations: 1.098 MB / 483.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.426e-05/0.1232, allocations: 4 kB / 483.8 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.1243, allocations: 0.5057 MB / 484.3 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002331/0.1246, allocations: 111.2 kB / 484.4 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008326/0.1254, allocations: 482.1 kB / 484.9 MB, free: 460 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002927/0.1257, allocations: 223 kB / 485.1 MB, free: 236 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004417/0.1262, allocations: 246.8 kB / 485.3 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.1264, allocations: 99.58 kB / 485.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001603/0.1265, allocations: 135.5 kB / 485.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.513e-05/0.1266, allocations: 20 kB / 485.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002768/0.1269, allocations: 151.9 kB / 485.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.309e-05/0.1269, allocations: 47.84 kB / 485.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.127, allocations: 119.4 kB / 485.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004647/0.1275, allocations: 406.7 kB / 486.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.1275, allocations: 4 kB / 486.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1275, allocations: 0 / 486.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.1275, allocations: 0 / 486.3 MB, free: 15.03 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001248/0.1288, allocations: 0.6125 MB / 486.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.1288, allocations: 12.03 kB / 486.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.274e-05/0.1289, allocations: 62.73 kB / 487 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003056/0.1292, allocations: 48.62 kB / 487 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/0.1294, allocations: 196 kB / 487.2 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.975e-05/0.1294, allocations: 16.94 kB / 487.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.033e-05/0.1295, allocations: 28.36 kB / 487.3 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005673/0.13, allocations: 287.5 kB / 487.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.1301, allocations: 0 / 487.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.1301, allocations: 16 kB / 487.6 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.1301, allocations: 8 kB / 487.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005591/0.1307, allocations: 233.5 kB / 487.8 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.1322, allocations: 1.001 MB / 488.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005538/0.1328, allocations: 385.9 kB / 489.2 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003583/0.1332, allocations: 133.7 kB / 489.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001868/0.1334, allocations: 170.2 kB / 489.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.1334, allocations: 34.5 kB / 489.5 MB, free: 11.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.212e-06/0.1334, allocations: 4 kB / 489.5 MB, free: 11.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001218/0.1346, allocations: 0.4896 MB / 490 MB, free: 10.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.689e-05/0.1347, allocations: 85.09 kB / 490.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001956/0.1349, allocations: 148.2 kB / 490.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.1349, allocations: 29.7 kB / 490.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.336e-05/0.135, allocations: 140.2 kB / 490.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.176e-05/0.1351, allocations: 70.95 kB / 490.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.896e-05/0.1352, allocations: 37.7 kB / 490.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1353, allocations: 322.8 kB / 490.8 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002139/0.1355, allocations: 75.88 kB / 490.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002494/0.1358, allocations: 121.8 kB / 491 MB, free: 9.902 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004689/0.1363, allocations: 205.1 kB / 491.2 MB, free: 9.684 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1363, allocations: 3.938 kB / 491.2 MB, free: 9.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007086/0.137, allocations: 286.8 kB / 491.5 MB, free: 9.387 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.137, allocations: 4 kB / 491.5 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.137, allocations: 4 kB / 491.5 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000209/0.1373, allocations: 57.81 kB / 491.6 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001819/0.1375, allocations: 35.97 kB / 491.6 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002303/0.1398, allocations: 2.833 MB / 494.4 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001633/0.1399, allocations: 31.86 kB / 494.5 MB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.889e-05/0.14, allocations: 11.94 kB / 494.5 MB, free: 6.125 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (19): * Single equations (assignments): 17 * 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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001423/0.1401, allocations: 137.8 kB / 494.6 MB, free: 5.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.137e-05/0.1402, allocations: 19.8 kB / 494.6 MB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006646/0.1409, allocations: 268.3 kB / 494.9 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.1409, allocations: 8.094 kB / 494.9 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.1409, allocations: 3.938 kB / 494.9 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.1409, allocations: 0 / 494.9 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.142, allocations: 0.6459 MB / 495.5 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.142, allocations: 4 kB / 495.5 MB, free: 4.957 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001656/0.1422, allocations: 35.97 kB / 495.6 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001191/0.1423, allocations: 49.62 kB / 495.6 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.1424, allocations: 8 kB / 495.6 MB, free: 4.859 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002208/0.1446, allocations: 2.836 MB / 498.5 MB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.1446, allocations: 8 kB / 498.5 MB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009752/0.1456, allocations: 0.5155 MB / 499 MB, free: 1.191 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.389e-05/0.1457, allocations: 88.95 kB / 499.1 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.769e-05/0.1457, allocations: 15.98 kB / 499.1 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001871/0.1459, allocations: 15.92 kB / 499.1 MB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.179e-05/0.146, allocations: 15.98 kB / 499.1 MB, free: 1.039 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.146, allocations: 16.05 kB / 499.1 MB, free: 1.023 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.829e-05/0.1461, allocations: 105.5 kB / 499.3 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1461, allocations: 0 / 499.3 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004037/0.1465, allocations: 75.78 kB / 499.3 MB, free: 0.8477 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (magFluxSource.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): 13 * 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,2,100.0%), (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.001415/0.1479, allocations: 1.088 MB / 0.4887 GB, free: 15.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007738/0.1487, allocations: 428.2 kB / 0.4891 GB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1487, allocations: 0 / 0.4891 GB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004154/0.1491, allocations: 329.2 kB / 0.4894 GB, free: 14.94 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.1495, allocations: 11.94 kB / 0.4894 GB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003248/0.1528, allocations: 2.345 MB / 0.4917 GB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003675/0.1532, allocations: 0.7361 MB / 0.4924 GB, free: 11.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.427e-05/0.1533, allocations: 21.41 kB / 0.4924 GB, free: 11.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.368e-05/0.1534, allocations: 65.86 kB / 0.4925 GB, free: 11.59 MB / 382.1 MB Notification: Performance of SimCode: time 2.204e-06/0.1534, allocations: 0 / 0.4925 GB, free: 11.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03308/0.1865, allocations: 4.288 MB / 0.4967 GB, free: 7.449 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.754/8.941, allocations: 15.3 kB / 0.4967 GB, free: 7.441 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1)