Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.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.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001158/0.001158, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001257/0.001258, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2131/0.2131, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 79.88 kB / 480.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/0.3376, allocations: 62.42 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.003684/0.3413, allocations: 2.372 MB / 0.5328 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001247/0.3426, allocations: 0.6577 MB / 0.5335 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.3427, allocations: 5.344 kB / 0.5335 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.3429, allocations: 43.89 kB / 0.5335 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000197/0.3431, allocations: 73.89 kB / 0.5336 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002933/0.3434, allocations: 93.05 kB / 0.5337 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003433/0.3437, allocations: 345.2 kB / 0.534 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003084/0.344, allocations: 162.5 kB / 0.5341 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002818/0.3443, allocations: 142.6 kB / 0.5343 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002322/0.3446, allocations: 160.7 kB / 0.5344 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.956e-05/0.3446, allocations: 33 kB / 0.5345 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.09e-05/0.3447, allocations: 39.69 kB / 0.5345 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.289e-05/0.3448, allocations: 68.08 kB / 0.5346 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001473/0.3449, allocations: 158 kB / 0.5347 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000406/0.3454, allocations: 375.9 kB / 0.5351 GB, free: 9.867 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3454, allocations: 0 / 0.5351 GB, free: 9.867 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3454, allocations: 0 / 0.5351 GB, free: 9.867 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.3454, allocations: 0 / 0.5351 GB, free: 9.867 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001055/0.3465, allocations: 0.5911 MB / 0.5357 GB, free: 9.336 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.408e-05/0.3465, allocations: 9.719 kB / 0.5357 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.3466, allocations: 64.77 kB / 0.5357 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003712/0.347, allocations: 53.44 kB / 0.5358 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002195/0.3472, allocations: 198.2 kB / 0.536 GB, free: 9.023 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.689e-05/0.3473, allocations: 26.62 kB / 0.536 GB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.945e-05/0.3473, allocations: 27.53 kB / 0.536 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005354/0.3479, allocations: 282.4 kB / 0.5363 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.3479, allocations: 0 / 0.5363 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.234e-05/0.348, allocations: 15.09 kB / 0.5363 GB, free: 8.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.348, allocations: 11.56 kB / 0.5363 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004094/0.3484, allocations: 214.6 kB / 0.5365 GB, free: 8.715 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001676/0.3501, allocations: 1.027 MB / 0.5375 GB, free: 7.895 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.522e-05/0.3502, allocations: 31.11 kB / 0.5376 GB, free: 7.863 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.485e-05/0.3502, allocations: 25.67 kB / 0.5376 GB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.577e-06/0.3502, allocations: 0 / 0.5376 GB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.798e-05/0.3503, allocations: 31.59 kB / 0.5376 GB, free: 7.809 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.3503, allocations: 0 / 0.5376 GB, free: 7.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002066/0.3505, allocations: 81.97 kB / 0.5377 GB, free: 7.746 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.3505, allocations: 55.53 kB / 0.5377 GB, free: 7.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000348/0.3509, allocations: 313.6 kB / 0.538 GB, free: 7.473 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.3509, allocations: 26.86 kB / 0.5381 GB, free: 7.441 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.351, allocations: 234 kB / 0.5383 GB, free: 7.227 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.153e-05/0.351, allocations: 6.094 kB / 0.5383 GB, free: 7.223 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-05/0.3511, allocations: 57.3 kB / 0.5383 GB, free: 7.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.3513, allocations: 331 kB / 0.5387 GB, free: 6.852 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001298/0.3514, allocations: 65.22 kB / 0.5387 GB, free: 6.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.3516, allocations: 88.41 kB / 0.5388 GB, free: 6.766 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002077/0.3518, allocations: 128 kB / 0.5389 GB, free: 6.688 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3518, allocations: 0 / 0.5389 GB, free: 6.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003964/0.3522, allocations: 231 kB / 0.5392 GB, free: 6.562 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.3522, allocations: 8.688 kB / 0.5392 GB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.3522, allocations: 5.125 kB / 0.5392 GB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.3523, allocations: 2 kB / 0.5392 GB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002918/0.3526, allocations: 60.39 kB / 0.5392 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.3526, allocations: 2.219 kB / 0.5392 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002421/0.3528, allocations: 38.62 kB / 0.5393 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.78e-05/0.3529, allocations: 9.938 kB / 0.5393 GB, free: 6.504 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (30): * Single equations (assignments): 30 * 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.000116/0.353, allocations: 134.2 kB / 0.5394 GB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.661e-05/0.353, allocations: 26.11 kB / 0.5394 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.114e-05/0.3531, allocations: 18.84 kB / 0.5394 GB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.3531, allocations: 0 / 0.5394 GB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3531, allocations: 9.703 kB / 0.5395 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3531, allocations: 0 / 0.5395 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005501/0.3537, allocations: 0.5097 MB / 0.54 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3537, allocations: 0 / 0.54 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.995e-05/0.3537, allocations: 3.625 kB / 0.54 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3537, allocations: 3.938 kB / 0.54 GB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.3537, allocations: 5.656 kB / 0.54 GB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3537, allocations: 64 / 0.54 GB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3538, allocations: 9.281 kB / 0.54 GB, free: 5.809 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001166/0.3539, allocations: 95.83 kB / 0.5401 GB, free: 5.715 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.5e-05/0.354, allocations: 101.8 kB / 0.5402 GB, free: 5.602 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.539e-05/0.354, allocations: 5.531 kB / 0.5402 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.3541, allocations: 1.5 kB / 0.5402 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.804e-05/0.3541, allocations: 5.469 kB / 0.5402 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.516e-06/0.3541, allocations: 1.344 kB / 0.5402 GB, free: 5.594 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002364/0.3544, allocations: 226.2 kB / 0.5404 GB, free: 5.445 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3544, allocations: 0 / 0.5404 GB, free: 5.445 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002805/0.3547, allocations: 64.84 kB / 0.5405 GB, free: 5.434 MB / 398.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 (2): * Single equations (assignments): 2 * 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.0003556/0.355, allocations: 0.6402 MB / 0.5411 GB, free: 4.797 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000242/0.3553, allocations: 109.2 kB / 0.5412 GB, free: 4.754 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3553, allocations: 0 / 0.5412 GB, free: 4.754 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.69e-05/0.3553, allocations: 17.83 kB / 0.5412 GB, free: 4.742 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.3557, allocations: 18.08 kB / 0.5412 GB, free: 4.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002494/0.3582, allocations: 2.221 MB / 0.5434 GB, free: 3.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/0.3585, allocations: 0.7392 MB / 0.5441 GB, free: 2.293 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001156/0.3586, allocations: 27.95 kB / 0.5441 GB, free: 2.277 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.3587, allocations: 72.31 kB / 0.5442 GB, free: 2.215 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3587, allocations: 1.094 kB / 0.5442 GB, free: 2.215 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02319/0.3819, allocations: 4.216 MB / 0.5483 GB, free: 15.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.967/8.349, allocations: 13.47 kB / 0.5483 GB, free: 15.11 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Leakage/Leakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches