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.001156/0.001156, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 199.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.273, allocations: 50.53 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.009389/0.2824, allocations: 7.898 MB / 416.7 MB, free: 9.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006662/0.2891, allocations: 3.154 MB / 419.8 MB, free: 6.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001308/0.2905, allocations: 35.88 kB / 419.8 MB, free: 6.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00374/0.2943, allocations: 1.333 MB / 421.2 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002881/0.2972, allocations: 0.6402 MB / 421.8 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004016/0.3012, allocations: 1.514 MB / 423.3 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003155/0.3044, allocations: 1.694 MB / 425 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002905/0.3073, allocations: 1.312 MB / 426.3 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001434/0.3088, allocations: 0.6694 MB / 427 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001621/0.3105, allocations: 0.8012 MB / 427.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005958/0.3111, allocations: 168 kB / 428 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001481/0.3126, allocations: 499.6 kB / 428.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005479/0.3131, allocations: 382.7 kB / 428.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001428/0.3146, allocations: 0.8046 MB / 429.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004115/0.3187, allocations: 2.327 MB / 432 MB, free: 10.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.3188, allocations: 7.984 kB / 432 MB, free: 10.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3188, allocations: 0 / 432 MB, free: 10.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.969e-05/0.3189, allocations: 0 / 432 MB, free: 10.19 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.007499/0.3264, allocations: 2.249 MB / 434.2 MB, free: 7.883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.3265, allocations: 12.03 kB / 434.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005452/0.327, allocations: 218.4 kB / 434.4 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004223/0.3312, allocations: 0.6087 MB / 435.1 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002211/0.3335, allocations: 0.8919 MB / 435.9 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002276/0.3338, allocations: 148.6 kB / 436.1 MB, free: 5.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000489/0.3343, allocations: 155.9 kB / 436.2 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003757/0.338, allocations: 1.331 MB / 437.6 MB, free: 4.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.47e-05/0.3382, allocations: 11.98 kB / 437.6 MB, free: 4.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002284/0.3384, allocations: 56 kB / 437.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.119e-05/0.3385, allocations: 36 kB / 437.7 MB, free: 4.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003399/0.3419, allocations: 1.28 MB / 439 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01074/0.3526, allocations: 4.945 MB / 443.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003113/0.3558, allocations: 1.935 MB / 445.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001227/0.3571, allocations: 0.5666 MB / 446.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002465/0.3573, allocations: 183.2 kB / 446.6 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00157/0.3589, allocations: 0.7372 MB / 447.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=132): time 4.979e-06/0.359, allocations: 0 / 447.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=166): time 0.01611/0.3751, allocations: 5.676 MB / 453 MB, free: 4.441 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.3752, allocations: 157.8 kB / 453.1 MB, free: 4.258 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001008/0.3763, allocations: 0.6568 MB / 453.8 MB, free: 3.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002074/0.3765, allocations: 61.7 kB / 453.9 MB, free: 3.523 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005086/0.377, allocations: 0.5952 MB / 454.5 MB, free: 2.918 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005715/0.3776, allocations: 0.5655 MB / 455 MB, free: 2.348 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005524/0.3782, allocations: 283.5 kB / 455.3 MB, free: 2.062 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.3784, allocations: 353.9 kB / 455.6 MB, free: 1.711 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/0.3795, allocations: 0.5114 MB / 456.2 MB, free: 1.199 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001366/0.3809, allocations: 0.8365 MB / 457 MB, free: 256 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002514/0.3834, allocations: 1.421 MB / 458.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.989e-06/0.3835, allocations: 8 kB / 458.4 MB, free: 14.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=215) (initialization): time 0.004805/0.3883, allocations: 2.024 MB / 460.4 MB, free: 12.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.228e-05/0.3884, allocations: 16 kB / 460.5 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.287e-05/0.3884, allocations: 8 kB / 460.5 MB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002026/0.3904, allocations: 0.5184 MB / 461 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/0.3917, allocations: 291.5 kB / 461.3 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01137/0.4031, allocations: 9.54 MB / 470.8 MB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001273/0.4044, allocations: 75.95 kB / 470.9 MB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002319/0.4046, allocations: 63.98 kB / 471 MB, free: 1.605 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.0008343/0.4055, allocations: 357.5 kB / 471.3 MB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002879/0.4058, allocations: 123.2 kB / 471.4 MB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004803/0.4106, allocations: 1.911 MB / 473.3 MB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.316e-05/0.4107, allocations: 20 kB / 473.4 MB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.259e-05/0.4107, allocations: 11.94 kB / 473.4 MB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.488e-05/0.4107, allocations: 7.969 kB / 473.4 MB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0076/0.4183, allocations: 3.518 MB / 476.9 MB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.584e-05/0.4184, allocations: 0 / 476.9 MB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/0.4195, allocations: 211.9 kB / 477.1 MB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002044/0.4216, allocations: 0.5067 MB / 477.6 MB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002316/0.4218, allocations: 35.98 kB / 477.6 MB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01043/0.4323, allocations: 9.138 MB / 486.8 MB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.397e-05/0.4323, allocations: 11.88 kB / 486.8 MB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006321/0.4386, allocations: 2.658 MB / 489.4 MB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006741/0.4394, allocations: 304.2 kB / 489.7 MB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000272/0.4396, allocations: 32 kB / 489.8 MB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009127/0.4406, allocations: 63.95 kB / 489.8 MB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003654/0.441, allocations: 137 kB / 490 MB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/0.4411, allocations: 51.98 kB / 490 MB, free: 13.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007184/0.4418, allocations: 455 kB / 490.5 MB, free: 13.33 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4418, allocations: 0 / 490.5 MB, free: 13.33 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002028/0.4439, allocations: 416 kB / 490.9 MB, free: 12.92 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.006755/0.4506, allocations: 3.296 MB / 494.2 MB, free: 9.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004507/0.4552, allocations: 2.088 MB / 496.3 MB, free: 7.43 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/0.4552, allocations: 0 / 496.3 MB, free: 7.43 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002735/0.458, allocations: 1.421 MB / 497.7 MB, free: 5.953 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/0.4592, allocations: 131.2 kB / 497.8 MB, free: 5.828 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02362/0.4828, allocations: 10.9 MB / 0.4968 GB, free: 10.52 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001209/0.4841, allocations: 1.209 MB / 0.498 GB, free: 9.281 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009065/0.485, allocations: 169.1 kB / 0.4981 GB, free: 9.113 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008816/0.4859, allocations: 0.5383 MB / 0.4987 GB, free: 8.574 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4859, allocations: 4 kB / 0.4987 GB, free: 8.57 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07183/0.5578, allocations: 28.95 MB / 0.5269 GB, free: 11.82 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.29/25.85, allocations: 7.734 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