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.001583/0.001583, 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.001918/0.001918, 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.495/1.495, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 56.14 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2715, allocations: 50.54 MB / 408.8 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.01003/0.2815, allocations: 7.902 MB / 416.7 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006174/0.2877, allocations: 3.154 MB / 419.8 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000933/0.2887, allocations: 35.88 kB / 419.8 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003456/0.2922, allocations: 1.337 MB / 421.2 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002265/0.2945, allocations: 0.6324 MB / 421.8 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003197/0.2977, allocations: 1.506 MB / 423.3 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002397/0.3001, allocations: 1.702 MB / 425 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0021/0.3022, allocations: 1.312 MB / 426.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001003/0.3032, allocations: 0.6616 MB / 427 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00107/0.3043, allocations: 0.809 MB / 427.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002676/0.3046, allocations: 168 kB / 428 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001035/0.3057, allocations: 499.6 kB / 428.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003382/0.306, allocations: 378.7 kB / 428.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008269/0.3068, allocations: 0.8084 MB / 429.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003028/0.3099, allocations: 2.339 MB / 432 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3099, allocations: 0 / 432 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3099, allocations: 0 / 432 MB, free: 10.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.583e-05/0.3099, allocations: 0 / 432 MB, free: 10.31 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.005857/0.3158, allocations: 2.239 MB / 434.2 MB, free: 8.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.3159, allocations: 8.031 kB / 434.2 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003418/0.3162, allocations: 222.4 kB / 434.4 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00392/0.3201, allocations: 0.6087 MB / 435 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001706/0.3219, allocations: 0.8881 MB / 435.9 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001672/0.322, allocations: 144.6 kB / 436.1 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002641/0.3223, allocations: 155.9 kB / 436.2 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002838/0.3252, allocations: 1.331 MB / 437.6 MB, free: 4.574 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.776e-05/0.3252, allocations: 8 kB / 437.6 MB, free: 4.566 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001423/0.3254, allocations: 60 kB / 437.6 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.458e-05/0.3254, allocations: 36 kB / 437.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002875/0.3283, allocations: 1.28 MB / 438.9 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009505/0.3378, allocations: 4.949 MB / 443.9 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003379/0.3413, allocations: 1.943 MB / 445.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001379/0.3427, allocations: 0.5666 MB / 446.4 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002764/0.343, allocations: 187.2 kB / 446.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001569/0.3446, allocations: 0.7294 MB / 447.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=132): time 4.328e-06/0.3446, allocations: 0 / 447.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=166): time 0.0159/0.3605, allocations: 5.676 MB / 453 MB, free: 4.566 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.3606, allocations: 153.8 kB / 453.1 MB, free: 4.387 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/0.3617, allocations: 0.6568 MB / 453.8 MB, free: 3.719 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001442/0.3618, allocations: 61.7 kB / 453.9 MB, free: 3.652 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005454/0.3624, allocations: 0.5952 MB / 454.4 MB, free: 3.047 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005241/0.3629, allocations: 0.5655 MB / 455 MB, free: 2.477 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005277/0.3634, allocations: 287.5 kB / 455.3 MB, free: 2.188 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.3636, allocations: 353.9 kB / 455.6 MB, free: 1.836 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/0.3648, allocations: 0.5114 MB / 456.2 MB, free: 1.324 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001468/0.3663, allocations: 0.8365 MB / 457 MB, free: 384 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002668/0.369, allocations: 1.421 MB / 458.4 MB, free: 14.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.889e-06/0.369, allocations: 11.94 kB / 458.4 MB, free: 14.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=215) (initialization): time 0.006657/0.3756, allocations: 2.028 MB / 460.4 MB, free: 12.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.201e-05/0.3757, allocations: 12 kB / 460.5 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.924e-05/0.3758, allocations: 8 kB / 460.5 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003056/0.3788, allocations: 0.5169 MB / 461 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001967/0.3808, allocations: 287.5 kB / 461.3 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01667/0.3975, allocations: 9.533 MB / 470.8 MB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/0.3995, allocations: 71.97 kB / 470.9 MB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000235/0.3998, allocations: 63.98 kB / 470.9 MB, free: 1.742 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.001011/0.4008, allocations: 365.6 kB / 471.3 MB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003599/0.4012, allocations: 119.2 kB / 471.4 MB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005792/0.407, allocations: 1.907 MB / 473.3 MB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.338e-05/0.407, allocations: 20 kB / 473.3 MB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.829e-05/0.4071, allocations: 11.94 kB / 473.3 MB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-05/0.4071, allocations: 7.969 kB / 473.4 MB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01043/0.4175, allocations: 3.53 MB / 476.9 MB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.204e-05/0.4176, allocations: 288 / 476.9 MB, free: 11.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001498/0.4191, allocations: 211.9 kB / 477.1 MB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002756/0.4219, allocations: 0.5066 MB / 477.6 MB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002286/0.4221, allocations: 39.97 kB / 477.6 MB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01592/0.4381, allocations: 9.133 MB / 486.8 MB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.4381, allocations: 7.875 kB / 486.8 MB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008636/0.4468, allocations: 2.658 MB / 489.4 MB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008923/0.4477, allocations: 304.2 kB / 489.7 MB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002467/0.448, allocations: 36 kB / 489.8 MB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001068/0.4491, allocations: 63.95 kB / 489.8 MB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004746/0.4495, allocations: 133.1 kB / 490 MB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002579/0.4498, allocations: 51.97 kB / 490 MB, free: 13.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001/0.4508, allocations: 451 kB / 490.4 MB, free: 13.46 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4508, allocations: 288 / 490.4 MB, free: 13.46 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002684/0.4535, allocations: 420 kB / 490.9 MB, free: 13.05 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.009576/0.4631, allocations: 3.3 MB / 494.2 MB, free: 9.699 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006441/0.4696, allocations: 2.092 MB / 496.3 MB, free: 7.555 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/0.4697, allocations: 0 / 496.3 MB, free: 7.555 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002988/0.4727, allocations: 1.421 MB / 497.7 MB, free: 6.078 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.4739, allocations: 131 kB / 497.8 MB, free: 5.953 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02364/0.4976, allocations: 10.91 MB / 0.4968 GB, free: 10.64 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001313/0.4989, allocations: 1.209 MB / 0.498 GB, free: 9.406 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008247/0.4998, allocations: 173 kB / 0.4981 GB, free: 9.234 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008524/0.5006, allocations: 0.5383 MB / 0.4987 GB, free: 8.695 MB / 430.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5006, allocations: 0 / 0.4987 GB, free: 8.695 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1113/0.612, allocations: 28.94 MB / 0.5269 GB, free: 11.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.93/25.54, allocations: 7.812 kB / 0.5269 GB, free: 11.94 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.1.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