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.001588/0.001588, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001977/0.001977, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2205/0.2205, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00228/0.00228, allocations: 75.88 kB / 480.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3425, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.00375/0.3462, allocations: 2.689 MB / 0.5331 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.3476, allocations: 0.7882 MB / 0.5339 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.3478, allocations: 10.06 kB / 0.5339 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002121/0.348, allocations: 76.83 kB / 0.534 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002165/0.3482, allocations: 103.1 kB / 0.5341 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002646/0.3485, allocations: 106.5 kB / 0.5342 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00039/0.3489, allocations: 415.3 kB / 0.5346 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000226/0.3491, allocations: 152.8 kB / 0.5347 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.3493, allocations: 141.2 kB / 0.5348 GB, free: 10 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/0.3495, allocations: 176.5 kB / 0.535 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.233e-05/0.3495, allocations: 33 kB / 0.535 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.2e-05/0.3496, allocations: 32.88 kB / 0.5351 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.498e-05/0.3497, allocations: 78.98 kB / 0.5352 GB, free: 9.805 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001694/0.3498, allocations: 186.6 kB / 0.5353 GB, free: 9.672 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004506/0.3503, allocations: 428.2 kB / 0.5357 GB, free: 9.352 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3503, allocations: 0 / 0.5357 GB, free: 9.352 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3503, allocations: 5.188 kB / 0.5357 GB, free: 9.348 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.3503, allocations: 0 / 0.5357 GB, free: 9.348 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.001027/0.3514, allocations: 0.6773 MB / 0.5364 GB, free: 8.754 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.3514, allocations: 9.062 kB / 0.5364 GB, free: 8.754 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.468e-05/0.3515, allocations: 78.22 kB / 0.5365 GB, free: 8.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.27e-05/0.3516, allocations: 40.77 kB / 0.5365 GB, free: 8.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003763/0.352, allocations: 285.8 kB / 0.5368 GB, free: 8.371 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.482e-05/0.352, allocations: 26.41 kB / 0.5368 GB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.68e-05/0.3521, allocations: 30.03 kB / 0.5369 GB, free: 8.352 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006647/0.3527, allocations: 369.9 kB / 0.5372 GB, free: 8.109 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.3527, allocations: 0 / 0.5372 GB, free: 8.109 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.046e-05/0.3528, allocations: 11.31 kB / 0.5372 GB, free: 8.102 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.3528, allocations: 16.67 kB / 0.5372 GB, free: 8.094 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006032/0.3534, allocations: 264.6 kB / 0.5375 GB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002024/0.3554, allocations: 1.347 MB / 0.5388 GB, free: 6.801 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004895/0.3559, allocations: 194 kB / 0.539 GB, free: 6.652 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002042/0.3562, allocations: 84.06 kB / 0.5391 GB, free: 6.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.057e-05/0.3562, allocations: 6.109 kB / 0.5391 GB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.37e-05/0.3562, allocations: 36.86 kB / 0.5391 GB, free: 6.543 MB / 398.1 MB Notification: Performance of pre-optimization done (n=15): time 3.036e-06/0.3562, allocations: 1.219 kB / 0.5391 GB, free: 6.543 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007683/0.357, allocations: 255.2 kB / 0.5394 GB, free: 6.402 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.118e-05/0.3571, allocations: 135 kB / 0.5395 GB, free: 6.242 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003501/0.3575, allocations: 339.8 kB / 0.5398 GB, free: 6.016 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.3575, allocations: 27.05 kB / 0.5398 GB, free: 5.984 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001498/0.3576, allocations: 250.4 kB / 0.5401 GB, free: 5.758 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.141e-05/0.3577, allocations: 54.81 kB / 0.5401 GB, free: 5.711 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.076e-05/0.3578, allocations: 58.31 kB / 0.5402 GB, free: 5.664 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.3579, allocations: 345.8 kB / 0.5405 GB, free: 5.324 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002334/0.3582, allocations: 79.12 kB / 0.5406 GB, free: 5.289 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000268/0.3584, allocations: 169.2 kB / 0.5407 GB, free: 5.137 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004854/0.3589, allocations: 263.4 kB / 0.541 GB, free: 4.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.359, allocations: 1.188 kB / 0.541 GB, free: 4.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006364/0.3596, allocations: 304.8 kB / 0.5413 GB, free: 4.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.3596, allocations: 10.67 kB / 0.5413 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.3596, allocations: 3.406 kB / 0.5413 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.3597, allocations: 4.438 kB / 0.5413 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003997/0.3601, allocations: 92.44 kB / 0.5414 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.3601, allocations: 8.891 kB / 0.5414 GB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002534/0.3603, allocations: 44.56 kB / 0.5414 GB, free: 4.707 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.559e-05/0.3604, allocations: 13.91 kB / 0.5415 GB, free: 4.703 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.0001452/0.3605, allocations: 156.9 kB / 0.5416 GB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.72e-05/0.3606, allocations: 30.44 kB / 0.5416 GB, free: 4.539 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.36e-05/0.3607, allocations: 38.86 kB / 0.5417 GB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.3607, allocations: 2.594 kB / 0.5417 GB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.3607, allocations: 1.594 kB / 0.5417 GB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.3607, allocations: 1.594 kB / 0.5417 GB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008183/0.3616, allocations: 0.5941 MB / 0.5423 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3616, allocations: 1.094 kB / 0.5423 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002886/0.3619, allocations: 58.75 kB / 0.5423 GB, free: 3.918 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.221e-06/0.3619, allocations: 2.406 kB / 0.5423 GB, free: 3.918 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.3619, allocations: 10.59 kB / 0.5423 GB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.533e-06/0.3619, allocations: 6.047 kB / 0.5423 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.362, allocations: 2.438 kB / 0.5423 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005754/0.3625, allocations: 401.6 kB / 0.5427 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.349e-05/0.3626, allocations: 105.6 kB / 0.5428 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.451e-05/0.3627, allocations: 18.92 kB / 0.5428 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.3629, allocations: 12.67 kB / 0.5429 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.493e-05/0.363, allocations: 18.8 kB / 0.5429 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.363, allocations: 4.031 kB / 0.5429 GB, free: 3.426 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002395/0.3633, allocations: 243.2 kB / 0.5431 GB, free: 3.27 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.433e-06/0.3633, allocations: 0 / 0.5431 GB, free: 3.27 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004185/0.3637, allocations: 71.11 kB / 0.5432 GB, free: 3.254 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.0008259/0.3645, allocations: 0.9334 MB / 0.5441 GB, free: 2.379 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005316/0.3651, allocations: 190.6 kB / 0.5443 GB, free: 2.301 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3651, allocations: 1.125 kB / 0.5443 GB, free: 2.301 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002329/0.3653, allocations: 85.48 kB / 0.5443 GB, free: 2.262 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004582/0.3658, allocations: 28.55 kB / 0.5444 GB, free: 2.246 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00404/0.3698, allocations: 3.001 MB / 0.5473 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003769/0.3702, allocations: 0.7753 MB / 0.5481 GB, free: 15 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001307/0.3704, allocations: 26.22 kB / 0.5481 GB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001469/0.3705, allocations: 107.4 kB / 0.5482 GB, free: 14.87 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3705, allocations: 0 / 0.5482 GB, free: 14.87 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0225/0.3931, allocations: 4.967 MB / 0.553 GB, free: 9.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.117/8.51, allocations: 8.141 kB / 0.553 GB, free: 9.977 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Sources_res.csv","/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