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.001971/0.001979, 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.00242/0.00242, 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.469/1.469, allocations: 227.4 MB / 246.8 MB, free: 10.5 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.2383/0.2383, allocations: 46.11 MB / 344.2 MB, free: 11.53 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.002488/0.002488, allocations: 83.73 kB / 417.8 MB, free: 19.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.119, allocations: 62.45 MB / 480.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.VariableComponents): time 0.003371/0.1224, allocations: 1.728 MB / 481.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002388/0.1227, allocations: 83.72 kB / 482 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.771e-05/0.1228, allocations: 4 kB / 482 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.744e-05/0.1228, allocations: 15.8 kB / 482 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.63e-05/0.1229, allocations: 23.78 kB / 482.1 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001072/0.123, allocations: 23.97 kB / 482.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001539/0.1232, allocations: 103.6 kB / 482.2 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001778/0.1234, allocations: 63.89 kB / 482.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.945e-05/0.1235, allocations: 43.84 kB / 482.3 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.645e-05/0.1236, allocations: 51.77 kB / 482.3 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.446e-05/0.1236, allocations: 12 kB / 482.3 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.19e-05/0.1236, allocations: 12 kB / 482.4 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.962e-05/0.1237, allocations: 19.92 kB / 482.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.912e-05/0.1237, allocations: 47.8 kB / 482.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001494/0.1239, allocations: 115.9 kB / 482.5 MB, free: 2.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1239, allocations: 4 kB / 482.5 MB, free: 2.754 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1239, allocations: 0 / 482.5 MB, free: 2.754 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.1239, allocations: 0 / 482.5 MB, free: 2.754 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.0006419/0.1246, allocations: 427.1 kB / 483 MB, free: 2.285 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.1246, allocations: 8.031 kB / 483 MB, free: 2.277 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.842e-05/0.1247, allocations: 42.75 kB / 483 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.081e-05/0.1247, allocations: 8.844 kB / 483 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.1248, allocations: 188.1 kB / 483.2 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.1249, allocations: 4.375 kB / 483.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.941e-05/0.1249, allocations: 12.38 kB / 483.2 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003255/0.1252, allocations: 122 kB / 483.3 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.1252, allocations: 3.938 kB / 483.3 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.1253, allocations: 4 kB / 483.3 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.1253, allocations: 0 / 483.3 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003565/0.1256, allocations: 111.9 kB / 483.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007891/0.1264, allocations: 479.2 kB / 483.9 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002489/0.1267, allocations: 82.53 kB / 484 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002258/0.1269, allocations: 64.92 kB / 484.1 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.386e-05/0.1269, allocations: 8 kB / 484.1 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.127, allocations: 34.5 kB / 484.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.482e-06/0.127, allocations: 3.938 kB / 484.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0008659/0.1279, allocations: 267.4 kB / 484.4 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/0.1279, allocations: 55.41 kB / 484.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.128, allocations: 113.8 kB / 484.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.1281, allocations: 33.7 kB / 484.6 MB, free: 500 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.562e-05/0.1282, allocations: 104.1 kB / 484.7 MB, free: 388 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.135e-05/0.1282, allocations: 19.73 kB / 484.7 MB, free: 368 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.902e-05/0.1282, allocations: 25.72 kB / 484.7 MB, free: 336 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.1284, allocations: 314.8 kB / 485 MB, free: 12 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001827/0.1286, allocations: 35.95 kB / 485.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.1288, allocations: 58.78 kB / 485.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003181/0.1291, allocations: 110.4 kB / 485.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1291, allocations: 0 / 485.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004246/0.1295, allocations: 146.3 kB / 485.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.1295, allocations: 4 kB / 485.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.1296, allocations: 0 / 485.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001664/0.1297, allocations: 28.78 kB / 485.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.1299, allocations: 15.98 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/0.1312, allocations: 1.403 MB / 486.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.964e-05/0.1313, allocations: 16.08 kB / 486.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.1313, allocations: 4 kB / 486.8 MB, free: 14.03 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.0001219/0.1315, allocations: 121.8 kB / 487 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.386e-05/0.1315, allocations: 11.84 kB / 487 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.229e-05/0.1315, allocations: 8.375 kB / 487 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.271e-06/0.1315, allocations: 4 kB / 487 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.1316, allocations: 3.938 kB / 487 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.1316, allocations: 0 / 487 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007034/0.1323, allocations: 432 kB / 487.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.1323, allocations: 128 / 487.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.387e-05/0.1324, allocations: 19.97 kB / 487.4 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.131e-05/0.1325, allocations: 28.83 kB / 487.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.936e-06/0.1325, allocations: 0 / 487.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001049/0.1336, allocations: 1.399 MB / 488.9 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.1336, allocations: 11.91 kB / 488.9 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004572/0.134, allocations: 241.1 kB / 489.1 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.071e-05/0.1341, allocations: 85.02 kB / 489.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.1341, allocations: 4 kB / 489.2 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.1342, allocations: 11.98 kB / 489.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.045e-05/0.1343, allocations: 11.92 kB / 489.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-06/0.1343, allocations: 0 / 489.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.429e-05/0.1344, allocations: 103.2 kB / 489.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1344, allocations: 0 / 489.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002607/0.1347, allocations: 23.94 kB / 489.3 MB, free: 11.27 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.0008209/0.1355, allocations: 0.7716 MB / 490.1 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005552/0.1361, allocations: 202.6 kB / 490.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1361, allocations: 0 / 490.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002624/0.1364, allocations: 166.7 kB / 490.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.1367, allocations: 21.59 kB / 490.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002212/0.1389, allocations: 1.583 MB / 492.1 MB, free: 8.383 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003408/0.1393, allocations: 0.7004 MB / 492.8 MB, free: 7.656 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.928e-05/0.1393, allocations: 4 kB / 492.8 MB, free: 7.652 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.103e-05/0.1394, allocations: 27.42 kB / 492.8 MB, free: 7.625 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1394, allocations: 3.938 kB / 492.8 MB, free: 7.621 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02655/0.1659, allocations: 2.331 MB / 495.1 MB, free: 5.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.763/8.929, allocations: 7.734 kB / 495.1 MB, free: 5.402 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Magnetic_FluxTubes_VariableComponents.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Magnetic.FluxTubes.VariableComponents.pipe 2>&1)