Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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) 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(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001479/0.001479, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001721/0.001721, allocations: 204.7 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.418/1.418, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2962/0.2975, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.01038/0.3079, allocations: 7.891 MB / 416.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005933/0.3139, allocations: 3.161 MB / 419.8 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001305/0.3153, allocations: 27.94 kB / 419.8 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003792/0.3191, allocations: 1.348 MB / 421.2 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002372/0.3215, allocations: 0.6246 MB / 421.8 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003236/0.3247, allocations: 1.507 MB / 423.3 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002636/0.3274, allocations: 1.706 MB / 425 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002448/0.3299, allocations: 1.323 MB / 426.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001116/0.331, allocations: 0.6616 MB / 427 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001288/0.3323, allocations: 0.8129 MB / 427.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005012/0.3328, allocations: 168 kB / 428 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001368/0.3342, allocations: 491.7 kB / 428.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005071/0.3347, allocations: 382.7 kB / 428.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001238/0.336, allocations: 0.8046 MB / 429.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003561/0.3395, allocations: 2.339 MB / 432 MB, free: 10.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3395, allocations: 0 / 432 MB, free: 10.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.3396, allocations: 0 / 432 MB, free: 10.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.555e-05/0.3396, allocations: 0 / 432 MB, free: 10.2 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 371 * Number of variables: 371 Notification: Performance of Generate backend data structure: time 0.006815/0.3465, allocations: 2.239 MB / 434.2 MB, free: 7.898 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.3465, allocations: 8.031 kB / 434.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004874/0.347, allocations: 218.4 kB / 434.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004115/0.3511, allocations: 0.6048 MB / 435 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/0.3529, allocations: 0.892 MB / 435.9 MB, free: 6.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000162/0.3531, allocations: 140.6 kB / 436.1 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003058/0.3534, allocations: 159.9 kB / 436.2 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003063/0.3565, allocations: 1.335 MB / 437.6 MB, free: 4.465 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.463e-05/0.3566, allocations: 4 kB / 437.6 MB, free: 4.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001577/0.3567, allocations: 60 kB / 437.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.071e-05/0.3568, allocations: 36 kB / 437.7 MB, free: 4.367 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002904/0.3597, allocations: 1.288 MB / 439 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008975/0.3687, allocations: 4.945 MB / 443.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003066/0.3718, allocations: 1.931 MB / 445.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001199/0.373, allocations: 0.5783 MB / 446.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002078/0.3732, allocations: 191.2 kB / 446.6 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001461/0.3747, allocations: 0.7333 MB / 447.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=132): time 4.879e-06/0.3747, allocations: 0 / 447.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=166): time 0.01546/0.3902, allocations: 5.672 MB / 453 MB, free: 4.453 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.239e-05/0.3903, allocations: 153.8 kB / 453.1 MB, free: 4.273 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009742/0.3913, allocations: 0.6568 MB / 453.8 MB, free: 3.605 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001175/0.3915, allocations: 57.7 kB / 453.9 MB, free: 3.543 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00052/0.392, allocations: 0.603 MB / 454.5 MB, free: 2.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004831/0.3925, allocations: 0.5616 MB / 455 MB, free: 2.363 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000464/0.393, allocations: 283.5 kB / 455.3 MB, free: 2.078 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.3931, allocations: 357.9 kB / 455.7 MB, free: 1.723 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001225/0.3943, allocations: 0.5075 MB / 456.2 MB, free: 1.215 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001453/0.3958, allocations: 0.8404 MB / 457 MB, free: 268 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002613/0.3984, allocations: 1.421 MB / 458.4 MB, free: 14.72 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.131e-05/0.3985, allocations: 4 kB / 458.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=215) (initialization): time 0.004711/0.4032, allocations: 2.039 MB / 460.5 MB, free: 12.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.863e-05/0.4032, allocations: 8 kB / 460.5 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.389e-05/0.4033, allocations: 8 kB / 460.5 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001946/0.4052, allocations: 0.517 MB / 461 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.4065, allocations: 287.5 kB / 461.3 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01059/0.4171, allocations: 9.534 MB / 470.8 MB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/0.4183, allocations: 72.03 kB / 470.9 MB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002143/0.4185, allocations: 71.98 kB / 471 MB, free: 1.621 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,rootMeanSquare.mean2.y_last,$PRE.rootMeanSquare.mean2.y_last,rootMeanSquare.mean1.y_last,$PRE.rootMeanSquare.mean1.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (161): * Single equations (assignments): 157 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,9,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0007969/0.4193, allocations: 357.3 kB / 471.3 MB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002699/0.4196, allocations: 119.2 kB / 471.4 MB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004591/0.4242, allocations: 1.915 MB / 473.3 MB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.63e-05/0.4243, allocations: 16 kB / 473.3 MB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.532e-05/0.4243, allocations: 11.94 kB / 473.4 MB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.624e-05/0.4243, allocations: 11.91 kB / 473.4 MB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007273/0.4316, allocations: 3.526 MB / 476.9 MB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.4316, allocations: 4 kB / 476.9 MB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009845/0.4326, allocations: 207.7 kB / 477.1 MB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001855/0.4345, allocations: 0.4982 MB / 477.6 MB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/0.4346, allocations: 43.97 kB / 477.6 MB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01075/0.4454, allocations: 9.135 MB / 486.8 MB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.4454, allocations: 3.938 kB / 486.8 MB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006265/0.4517, allocations: 2.662 MB / 489.4 MB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006751/0.4524, allocations: 300.2 kB / 489.7 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002852/0.4527, allocations: 36.28 kB / 489.8 MB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009312/0.4537, allocations: 63.95 kB / 489.8 MB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003182/0.454, allocations: 137.1 kB / 490 MB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001131/0.4541, allocations: 51.91 kB / 490 MB, free: 13.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007083/0.4548, allocations: 459 kB / 490.5 MB, free: 13.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4549, allocations: 0 / 490.5 MB, free: 13.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001877/0.4567, allocations: 416 kB / 490.9 MB, free: 12.93 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (coil.i,fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,rootMeanSquare.mean1.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 6 (fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,19,100.0%), (1,9,100.0%), (2,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006139/0.4629, allocations: 3.295 MB / 494.2 MB, free: 9.586 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00395/0.4669, allocations: 2.088 MB / 496.3 MB, free: 7.445 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.4669, allocations: 4 kB / 496.3 MB, free: 7.441 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002272/0.4692, allocations: 1.421 MB / 497.7 MB, free: 5.965 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009243/0.4701, allocations: 130.3 kB / 497.8 MB, free: 5.844 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02109/0.4912, allocations: 10.9 MB / 0.4968 GB, free: 10.53 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001206/0.4925, allocations: 1.205 MB / 0.498 GB, free: 9.297 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007138/0.4932, allocations: 181 kB / 0.4981 GB, free: 9.117 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008097/0.494, allocations: 0.5305 MB / 0.4987 GB, free: 8.586 MB / 430.1 MB Notification: Performance of SimCode: time 1.142e-06/0.494, allocations: 0 / 0.4987 GB, free: 8.586 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07458/0.5686, allocations: 28.95 MB / 0.5269 GB, free: 11.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.43/25, allocations: 11.75 kB / 0.5269 GB, free: 11.82 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/NonLinearInductor/NonLinearInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches