Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents,fileNamePrefix="ModelicaTest_trunk_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.001057/0.001061, allocations: 92.34 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001147/0.001147, allocations: 201.1 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2011/0.2011, allocations: 46.18 MB / 345.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002766/0.0002766, allocations: 11.98 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1253, allocations: 63.56 MB / 483.2 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents): time 0.003011/0.1284, allocations: 2.151 MB / 485.3 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.1302, allocations: 1.071 MB / 486.4 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.1304, allocations: 4 kB / 486.4 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003687/0.1308, allocations: 107.6 kB / 486.5 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003859/0.1312, allocations: 87.52 kB / 486.6 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009201/0.1321, allocations: 462.5 kB / 487 MB, free: 176 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003872/0.1325, allocations: 215.1 kB / 487.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001013/0.1335, allocations: 0.5142 MB / 487.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002144/0.1337, allocations: 87.64 kB / 487.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001845/0.1339, allocations: 107.5 kB / 488 MB, free: 15.24 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.558e-05/0.134, allocations: 12 kB / 488 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003524/0.1343, allocations: 135.8 kB / 488.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.295e-05/0.1344, allocations: 39.83 kB / 488.1 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001343/0.1345, allocations: 121.2 kB / 488.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005911/0.1351, allocations: 383 kB / 488.6 MB, free: 14.56 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1352, allocations: 0 / 488.6 MB, free: 14.56 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.208e-06/0.1352, allocations: 0 / 488.6 MB, free: 14.56 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.1352, allocations: 3.938 kB / 488.6 MB, free: 14.55 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.00161/0.1368, allocations: 0.5891 MB / 489.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.262e-05/0.1369, allocations: 8.875 kB / 489.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001664/0.1371, allocations: 62.73 kB / 489.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004041/0.1375, allocations: 56.61 kB / 489.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/0.1377, allocations: 192.1 kB / 489.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.855e-05/0.1378, allocations: 16.94 kB / 489.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.631e-05/0.1379, allocations: 28.28 kB / 489.6 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007717/0.1386, allocations: 307.5 kB / 489.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/0.1387, allocations: 4 kB / 489.9 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.746e-05/0.1387, allocations: 8 kB / 489.9 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.1387, allocations: 8 kB / 489.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006392/0.1394, allocations: 249.6 kB / 490.1 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00155/0.1409, allocations: 1.009 MB / 491.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005284/0.1415, allocations: 386.6 kB / 491.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003312/0.1418, allocations: 145.7 kB / 491.7 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001892/0.142, allocations: 166.2 kB / 491.8 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.1421, allocations: 34.56 kB / 491.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=19): time 1.743e-06/0.1421, allocations: 0 / 491.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001268/0.1433, allocations: 0.5309 MB / 492.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.811e-05/0.1434, allocations: 85.23 kB / 492.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.1435, allocations: 133.8 kB / 492.6 MB, free: 10.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.1436, allocations: 33.7 kB / 492.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.579e-05/0.1436, allocations: 144.1 kB / 492.8 MB, free: 10.03 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.667e-05/0.1437, allocations: 67.03 kB / 492.9 MB, free: 9.965 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-05/0.1438, allocations: 29.64 kB / 492.9 MB, free: 9.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1439, allocations: 322.8 kB / 493.2 MB, free: 9.605 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002251/0.1441, allocations: 83.95 kB / 493.3 MB, free: 9.523 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002583/0.1444, allocations: 133.8 kB / 493.4 MB, free: 9.371 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004692/0.1449, allocations: 232.8 kB / 493.6 MB, free: 9.125 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.1449, allocations: 4 kB / 493.6 MB, free: 9.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006387/0.1455, allocations: 298.9 kB / 493.9 MB, free: 8.816 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.1456, allocations: 10.48 kB / 493.9 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.1456, allocations: 0 / 493.9 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002022/0.1458, allocations: 49.89 kB / 494 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001906/0.146, allocations: 47.91 kB / 494 MB, free: 8.707 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001881/0.1479, allocations: 2.644 MB / 496.7 MB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/0.148, allocations: 39.86 kB / 496.7 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.1481, allocations: 4 kB / 496.7 MB, free: 5.754 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.0001269/0.1482, allocations: 137.8 kB / 496.9 MB, free: 5.609 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.425e-05/0.1483, allocations: 15.84 kB / 496.9 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006811/0.1489, allocations: 288.3 kB / 497.2 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.149, allocations: 0 / 497.2 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.149, allocations: 7.938 kB / 497.2 MB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.149, allocations: 0 / 497.2 MB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.1501, allocations: 0.6693 MB / 497.8 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1501, allocations: 7.969 kB / 497.8 MB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.1503, allocations: 39.97 kB / 497.9 MB, free: 4.508 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001171/0.1504, allocations: 41.7 kB / 497.9 MB, free: 4.461 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.1504, allocations: 4 kB / 497.9 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001752/0.1522, allocations: 2.654 MB / 0.4888 GB, free: 1.535 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.1522, allocations: 0 / 0.4888 GB, free: 1.535 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009618/0.1532, allocations: 0.555 MB / 0.4894 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.351e-05/0.1533, allocations: 85.05 kB / 0.4895 GB, free: 0.8516 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.311e-05/0.1533, allocations: 8 kB / 0.4895 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001906/0.1535, allocations: 23.92 kB / 0.4895 GB, free: 0.8203 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.598e-05/0.1536, allocations: 27.97 kB / 0.4895 GB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.1536, allocations: 4 kB / 0.4895 GB, free: 0.7891 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.984e-05/0.1537, allocations: 110.1 kB / 0.4896 GB, free: 0.6836 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.025e-06/0.1537, allocations: 0 / 0.4896 GB, free: 0.6836 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000466/0.1542, allocations: 79.62 kB / 0.4897 GB, free: 0.6055 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.001341/0.1555, allocations: 1.117 MB / 0.4908 GB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007494/0.1563, allocations: 435.9 kB / 0.4912 GB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.1563, allocations: 8 kB / 0.4912 GB, free: 14.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006135/0.1569, allocations: 329.3 kB / 0.4915 GB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003978/0.1573, allocations: 24.05 kB / 0.4916 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004101/0.1614, allocations: 2.521 MB / 0.494 GB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004263/0.1619, allocations: 0.7361 MB / 0.4947 GB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.931e-05/0.162, allocations: 17.38 kB / 0.4948 GB, free: 11.17 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.1621, allocations: 55.41 kB / 0.4948 GB, free: 11.11 MB / 382.1 MB Notification: Performance of SimCode: time 1.243e-06/0.1621, allocations: 4 kB / 0.4948 GB, free: 11.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01609/0.1782, allocations: 3.915 MB / 0.4986 GB, free: 7.383 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001924/0.1784, allocations: 244.6 kB / 0.4989 GB, free: 7.125 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.806/1.984, allocations: 3.125 kB / 0.4989 GB, free: 7.125 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_VariableComponents.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/QuasiStatic/FluxTubes/VariableComponents/VariableComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.VariableComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches