Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 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.Sources,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_trunk_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.001702/0.001702, allocations: 118.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00212/0.00212, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2164/0.2164, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00285/0.00285, allocations: 79.88 kB / 480.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3397, allocations: 62.42 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.003829/0.3436, allocations: 2.692 MB / 0.5331 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.345, allocations: 0.7948 MB / 0.5339 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001519/0.3452, allocations: 5.344 kB / 0.5339 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002346/0.3454, allocations: 73.73 kB / 0.534 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002433/0.3457, allocations: 102.9 kB / 0.5341 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002858/0.346, allocations: 106 kB / 0.5342 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000422/0.3464, allocations: 423.1 kB / 0.5346 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002414/0.3467, allocations: 131.8 kB / 0.5347 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001776/0.3468, allocations: 158.5 kB / 0.5349 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001905/0.347, allocations: 168.6 kB / 0.535 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.932e-05/0.3471, allocations: 33 kB / 0.535 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.219e-05/0.3472, allocations: 37.84 kB / 0.5351 GB, free: 9.883 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.86e-05/0.3472, allocations: 73.55 kB / 0.5352 GB, free: 9.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001768/0.3474, allocations: 187.5 kB / 0.5353 GB, free: 9.688 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003967/0.3478, allocations: 423.8 kB / 0.5357 GB, free: 9.367 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.3478, allocations: 1.094 kB / 0.5357 GB, free: 9.367 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3478, allocations: 3.938 kB / 0.5357 GB, free: 9.363 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.3478, allocations: 0 / 0.5357 GB, free: 9.363 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.00109/0.3489, allocations: 0.6782 MB / 0.5364 GB, free: 8.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.349, allocations: 8.594 kB / 0.5364 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.379e-05/0.3491, allocations: 70.19 kB / 0.5365 GB, free: 8.703 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.011e-05/0.3492, allocations: 41 kB / 0.5365 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003809/0.3495, allocations: 281.2 kB / 0.5368 GB, free: 8.398 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.927e-05/0.3496, allocations: 26.22 kB / 0.5368 GB, free: 8.387 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.905e-05/0.3496, allocations: 38.78 kB / 0.5368 GB, free: 8.371 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006534/0.3503, allocations: 361.4 kB / 0.5372 GB, free: 8.137 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.3503, allocations: 7.875 kB / 0.5372 GB, free: 8.129 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.185e-05/0.3504, allocations: 15.34 kB / 0.5372 GB, free: 8.117 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.3504, allocations: 9.469 kB / 0.5372 GB, free: 8.117 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006087/0.351, allocations: 276.3 kB / 0.5375 GB, free: 7.992 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.353, allocations: 1.332 MB / 0.5388 GB, free: 6.828 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004895/0.3535, allocations: 197.7 kB / 0.539 GB, free: 6.676 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002072/0.3537, allocations: 79.94 kB / 0.5391 GB, free: 6.617 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.208e-05/0.3538, allocations: 2.312 kB / 0.5391 GB, free: 6.617 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.917e-05/0.3538, allocations: 48.7 kB / 0.5391 GB, free: 6.562 MB / 398.1 MB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.3538, allocations: 0 / 0.5391 GB, free: 6.562 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007604/0.3546, allocations: 245.2 kB / 0.5393 GB, free: 6.434 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.618e-05/0.3547, allocations: 137.9 kB / 0.5395 GB, free: 6.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003561/0.355, allocations: 344 kB / 0.5398 GB, free: 6.039 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.3551, allocations: 29.7 kB / 0.5398 GB, free: 6.004 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.3552, allocations: 238.3 kB / 0.54 GB, free: 5.789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.156e-05/0.3553, allocations: 58.19 kB / 0.5401 GB, free: 5.738 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.646e-05/0.3553, allocations: 49.73 kB / 0.5402 GB, free: 5.699 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3555, allocations: 349.5 kB / 0.5405 GB, free: 5.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002354/0.3557, allocations: 80.12 kB / 0.5406 GB, free: 5.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002727/0.356, allocations: 174 kB / 0.5407 GB, free: 5.164 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005124/0.3565, allocations: 254.9 kB / 0.541 GB, free: 4.965 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.3565, allocations: 1.062 kB / 0.541 GB, free: 4.965 MB / 398.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006493/0.3572, allocations: 304.6 kB / 0.5413 GB, free: 4.805 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.3572, allocations: 10.62 kB / 0.5413 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.3572, allocations: 3.469 kB / 0.5413 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.3573, allocations: 4.344 kB / 0.5413 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004103/0.3577, allocations: 93.12 kB / 0.5414 GB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.3577, allocations: 8.203 kB / 0.5414 GB, free: 4.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002691/0.358, allocations: 48.52 kB / 0.5414 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.175e-05/0.358, allocations: 14.03 kB / 0.5414 GB, free: 4.734 MB / 398.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.0001458/0.3582, allocations: 148.9 kB / 0.5416 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.893e-05/0.3583, allocations: 33.84 kB / 0.5416 GB, free: 4.574 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.645e-05/0.3583, allocations: 35.48 kB / 0.5416 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.3583, allocations: 6.188 kB / 0.5416 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.3584, allocations: 1.125 kB / 0.5417 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.3584, allocations: 2.156 kB / 0.5417 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008071/0.3592, allocations: 0.5899 MB / 0.5422 GB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.3592, allocations: 2.125 kB / 0.5422 GB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/0.3595, allocations: 62.12 kB / 0.5423 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.3595, allocations: 3.031 kB / 0.5423 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.057e-05/0.3595, allocations: 15.19 kB / 0.5423 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.135e-06/0.3595, allocations: 6.219 kB / 0.5423 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.3595, allocations: 1.969 kB / 0.5423 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005126/0.3601, allocations: 392.7 kB / 0.5427 GB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.88e-05/0.3602, allocations: 114 kB / 0.5428 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.063e-05/0.3602, allocations: 10 kB / 0.5428 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002346/0.3605, allocations: 13.02 kB / 0.5428 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.056e-05/0.3605, allocations: 18.17 kB / 0.5428 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.3605, allocations: 9.656 kB / 0.5428 GB, free: 3.461 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002326/0.3608, allocations: 236.8 kB / 0.5431 GB, free: 3.309 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3608, allocations: 1.125 kB / 0.5431 GB, free: 3.309 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004191/0.3612, allocations: 75.38 kB / 0.5431 GB, free: 3.289 MB / 398.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.0007863/0.362, allocations: 0.928 MB / 0.5441 GB, free: 2.418 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005253/0.3625, allocations: 194.6 kB / 0.5442 GB, free: 2.336 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3626, allocations: 1.188 kB / 0.5442 GB, free: 2.336 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002073/0.3628, allocations: 77.05 kB / 0.5443 GB, free: 2.305 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004601/0.3632, allocations: 30.2 kB / 0.5443 GB, free: 2.289 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003922/0.3672, allocations: 2.971 MB / 0.5472 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003387/0.3675, allocations: 0.7791 MB / 0.548 GB, free: 15.08 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.3676, allocations: 26.22 kB / 0.548 GB, free: 15.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.3678, allocations: 107.4 kB / 0.5481 GB, free: 14.95 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3678, allocations: 0 / 0.5481 GB, free: 14.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02352/0.3913, allocations: 5.036 MB / 0.553 GB, free: 9.988 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.088/8.479, allocations: 4.828 kB / 0.5531 GB, free: 9.984 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Sources/Sources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches