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.001057/0.001057, allocations: 118.8 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001175/0.001175, allocations: 197.2 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, 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.2147/0.2147, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 75.88 kB / 480.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3224, allocations: 62.44 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Sources): time 0.004057/0.3265, allocations: 2.682 MB / 0.5331 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.3278, allocations: 0.794 MB / 0.5339 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.328, allocations: 9.344 kB / 0.5339 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002276/0.3282, allocations: 69.72 kB / 0.534 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002325/0.3285, allocations: 102.6 kB / 0.5341 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002663/0.3287, allocations: 110.8 kB / 0.5342 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000384/0.3291, allocations: 419.5 kB / 0.5346 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002145/0.3293, allocations: 143.7 kB / 0.5347 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001568/0.3295, allocations: 150.5 kB / 0.5349 GB, free: 9.988 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001791/0.3297, allocations: 168.6 kB / 0.535 GB, free: 9.867 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.884e-05/0.3298, allocations: 32.72 kB / 0.5351 GB, free: 9.867 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.144e-05/0.3298, allocations: 33.41 kB / 0.5351 GB, free: 9.867 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.546e-05/0.3299, allocations: 85.86 kB / 0.5352 GB, free: 9.793 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001589/0.3301, allocations: 183.5 kB / 0.5353 GB, free: 9.664 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003825/0.3304, allocations: 424 kB / 0.5357 GB, free: 9.344 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3305, allocations: 5.219 kB / 0.5358 GB, free: 9.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3305, allocations: 0 / 0.5358 GB, free: 9.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.3305, allocations: 0 / 0.5358 GB, free: 9.34 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.001062/0.3315, allocations: 0.6696 MB / 0.5364 GB, free: 8.754 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.3316, allocations: 13.38 kB / 0.5364 GB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.938e-05/0.3317, allocations: 70.22 kB / 0.5365 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.464e-05/0.3317, allocations: 40.03 kB / 0.5365 GB, free: 8.664 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003667/0.3321, allocations: 286.6 kB / 0.5368 GB, free: 8.375 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/0.3321, allocations: 22.03 kB / 0.5368 GB, free: 8.367 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.257e-05/0.3322, allocations: 34.56 kB / 0.5368 GB, free: 8.355 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006606/0.3329, allocations: 369.3 kB / 0.5372 GB, free: 8.113 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.3329, allocations: 0 / 0.5372 GB, free: 8.113 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.043e-05/0.3329, allocations: 15.75 kB / 0.5372 GB, free: 8.102 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.3329, allocations: 7.781 kB / 0.5372 GB, free: 8.102 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000654/0.3336, allocations: 264 kB / 0.5375 GB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002011/0.3356, allocations: 1.343 MB / 0.5388 GB, free: 6.809 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004918/0.3361, allocations: 193.8 kB / 0.539 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002151/0.3364, allocations: 80.16 kB / 0.539 GB, free: 6.602 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.3364, allocations: 10.02 kB / 0.5391 GB, free: 6.594 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.3364, allocations: 36.75 kB / 0.5391 GB, free: 6.551 MB / 398.1 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.3364, allocations: 0 / 0.5391 GB, free: 6.551 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.000821/0.3373, allocations: 248.2 kB / 0.5393 GB, free: 6.418 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.504e-05/0.3373, allocations: 135.4 kB / 0.5395 GB, free: 6.258 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003426/0.3377, allocations: 343.1 kB / 0.5398 GB, free: 6.027 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.3377, allocations: 27.64 kB / 0.5398 GB, free: 5.996 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/0.3379, allocations: 244.9 kB / 0.54 GB, free: 5.773 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.926e-05/0.3379, allocations: 54.2 kB / 0.5401 GB, free: 5.727 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.927e-05/0.338, allocations: 54.58 kB / 0.5401 GB, free: 5.684 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.3382, allocations: 349.4 kB / 0.5405 GB, free: 5.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002408/0.3384, allocations: 75.17 kB / 0.5406 GB, free: 5.309 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003038/0.3387, allocations: 178.2 kB / 0.5407 GB, free: 5.148 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005144/0.3393, allocations: 250.7 kB / 0.541 GB, free: 4.953 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3393, allocations: 1.188 kB / 0.541 GB, free: 4.953 MB / 398.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006764/0.3399, allocations: 313.8 kB / 0.5413 GB, free: 4.785 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.34, allocations: 6.031 kB / 0.5413 GB, free: 4.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.34, allocations: 3.031 kB / 0.5413 GB, free: 4.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.34, allocations: 4.5 kB / 0.5413 GB, free: 4.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004246/0.3404, allocations: 94.17 kB / 0.5414 GB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.3405, allocations: 4.344 kB / 0.5414 GB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002956/0.3408, allocations: 51.27 kB / 0.5414 GB, free: 4.723 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.488e-05/0.3408, allocations: 17.44 kB / 0.5414 GB, free: 4.715 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.0001516/0.341, allocations: 157.3 kB / 0.5416 GB, free: 4.566 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.3411, allocations: 34.11 kB / 0.5416 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.208e-05/0.3412, allocations: 31.19 kB / 0.5416 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.3412, allocations: 2.812 kB / 0.5417 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.3412, allocations: 1.156 kB / 0.5417 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.3412, allocations: 1.688 kB / 0.5417 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008127/0.342, allocations: 0.5933 MB / 0.5422 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.342, allocations: 2.375 kB / 0.5422 GB, free: 3.953 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002946/0.3423, allocations: 58.25 kB / 0.5423 GB, free: 3.934 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.3423, allocations: 7.312 kB / 0.5423 GB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.3424, allocations: 5.406 kB / 0.5423 GB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.02e-06/0.3424, allocations: 6.844 kB / 0.5423 GB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3424, allocations: 1.469 kB / 0.5423 GB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005819/0.343, allocations: 392.5 kB / 0.5427 GB, free: 3.598 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.139e-05/0.3431, allocations: 121.6 kB / 0.5428 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.836e-05/0.3431, allocations: 6.656 kB / 0.5428 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002359/0.3434, allocations: 16.58 kB / 0.5428 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.274e-05/0.3434, allocations: 19.05 kB / 0.5428 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.3435, allocations: 4.312 kB / 0.5428 GB, free: 3.445 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002495/0.3437, allocations: 237.7 kB / 0.5431 GB, free: 3.293 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3437, allocations: 0 / 0.5431 GB, free: 3.293 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004162/0.3441, allocations: 75.69 kB / 0.5431 GB, free: 3.273 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.0008904/0.345, allocations: 0.9246 MB / 0.544 GB, free: 2.406 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000584/0.3456, allocations: 190.7 kB / 0.5442 GB, free: 2.328 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3456, allocations: 1.594 kB / 0.5442 GB, free: 2.328 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002349/0.3459, allocations: 85.2 kB / 0.5443 GB, free: 2.289 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000438/0.3463, allocations: 25.7 kB / 0.5443 GB, free: 2.273 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00418/0.3505, allocations: 2.982 MB / 0.5472 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004217/0.351, allocations: 0.7753 MB / 0.548 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001286/0.3511, allocations: 30.16 kB / 0.548 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001658/0.3513, allocations: 99.41 kB / 0.5481 GB, free: 14.91 MB / 414.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3513, allocations: 0 / 0.5481 GB, free: 14.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02281/0.3741, allocations: 5.037 MB / 0.553 GB, free: 9.953 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.079/8.453, allocations: 12.83 kB / 0.5531 GB, free: 9.941 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