Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001132/0.001132, allocations: 122.8 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.001313/0.001313, allocations: 202 kB / 18.73 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.354/1.354, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 59.91 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.3082, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.008642/0.317, allocations: 6.712 MB / 415.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004852/0.3219, allocations: 2.448 MB / 417.9 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009592/0.3229, allocations: 20 kB / 417.9 MB, free: 8.305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004615/0.3275, allocations: 1.882 MB / 419.8 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002102/0.3296, allocations: 0.5433 MB / 420.4 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003026/0.3327, allocations: 1.322 MB / 421.7 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002025/0.3347, allocations: 1.121 MB / 422.8 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001974/0.3367, allocations: 0.9349 MB / 423.7 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009363/0.3377, allocations: 490.1 kB / 424.2 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009493/0.3386, allocations: 0.6108 MB / 424.8 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003034/0.3389, allocations: 104 kB / 424.9 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001441/0.3404, allocations: 451.6 kB / 425.4 MB, free: 0.832 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003696/0.3408, allocations: 251 kB / 425.6 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001031/0.3418, allocations: 0.5597 MB / 426.2 MB, free: 24 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003081/0.3449, allocations: 1.676 MB / 427.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.3449, allocations: 0 / 427.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3449, allocations: 0 / 427.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.41e-05/0.345, allocations: 3.938 kB / 427.9 MB, free: 14.34 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.007542/0.3526, allocations: 2.051 MB / 429.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.3526, allocations: 8.031 kB / 429.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004193/0.3531, allocations: 186.4 kB / 430.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003672/0.3567, allocations: 0.5114 MB / 430.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004315/0.3572, allocations: 318.6 kB / 430.9 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.3573, allocations: 98.95 kB / 431 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003224/0.3577, allocations: 132.3 kB / 431.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002955/0.3606, allocations: 1.292 MB / 432.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.902e-05/0.3607, allocations: 7.984 kB / 432.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001339/0.3608, allocations: 52 kB / 432.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.506e-05/0.3609, allocations: 28 kB / 432.5 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00269/0.3636, allocations: 1.201 MB / 433.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006551/0.3701, allocations: 4.274 MB / 438 MB, free: 3.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002644/0.3728, allocations: 2.444 MB / 440.5 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008961/0.3737, allocations: 0.5033 MB / 441 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001976/0.3739, allocations: 191.2 kB / 441.1 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.007e-05/0.374, allocations: 51.56 kB / 441.2 MB, free: 320 kB / 350.1 MB Notification: Performance of pre-optimization done (n=122): time 3.557e-06/0.374, allocations: 0 / 441.2 MB, free: 320 kB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.01037/0.3844, allocations: 3.782 MB / 445 MB, free: 12.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.718e-05/0.3845, allocations: 90.11 kB / 445.1 MB, free: 12.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004619/0.3849, allocations: 393.5 kB / 445.4 MB, free: 11.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.3e-05/0.385, allocations: 49.7 kB / 445.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002945/0.3853, allocations: 468.6 kB / 446 MB, free: 11.42 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003129/0.3856, allocations: 440.2 kB / 446.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003339/0.386, allocations: 223.5 kB / 446.6 MB, free: 10.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.3861, allocations: 374.8 kB / 447 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009918/0.3871, allocations: 439.8 kB / 447.4 MB, free: 9.953 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.3883, allocations: 0.6918 MB / 448.1 MB, free: 9.164 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002068/0.3904, allocations: 1.175 MB / 449.3 MB, free: 7.895 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.255e-06/0.3904, allocations: 7.938 kB / 449.3 MB, free: 7.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002917/0.3933, allocations: 1.467 MB / 450.7 MB, free: 6.406 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.3934, allocations: 8 kB / 450.7 MB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.3934, allocations: 8 kB / 450.8 MB, free: 6.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005227/0.3939, allocations: 197.6 kB / 450.9 MB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.3951, allocations: 283.6 kB / 451.2 MB, free: 5.914 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004249/0.3993, allocations: 4.379 MB / 455.6 MB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008676/0.4002, allocations: 95.89 kB / 455.7 MB, free: 1.168 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.125e-05/0.4003, allocations: 51.98 kB / 455.7 MB, free: 1.117 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (146): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004439/0.4008, allocations: 265.5 kB / 456 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.4009, allocations: 67.58 kB / 456.1 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002763/0.4037, allocations: 1.343 MB / 457.4 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.4037, allocations: 15.94 kB / 457.4 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.4037, allocations: 8 kB / 457.4 MB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.4037, allocations: 11.97 kB / 457.4 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004258/0.408, allocations: 2.594 MB / 460 MB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.408, allocations: 4 kB / 460 MB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009266/0.4089, allocations: 211.7 kB / 460.3 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004115/0.4094, allocations: 169.7 kB / 460.4 MB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.632e-05/0.4094, allocations: 24 kB / 460.4 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003711/0.4132, allocations: 4.19 MB / 464.6 MB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.4132, allocations: 0 / 464.6 MB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003488/0.4167, allocations: 1.869 MB / 466.5 MB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003317/0.417, allocations: 224.6 kB / 466.7 MB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.895e-05/0.4171, allocations: 39.98 kB / 466.8 MB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006297/0.4178, allocations: 55.95 kB / 466.8 MB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/0.4179, allocations: 88.88 kB / 466.9 MB, free: 5.504 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-05/0.418, allocations: 35.98 kB / 466.9 MB, free: 5.469 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000283/0.4183, allocations: 267.2 kB / 467.2 MB, free: 5.207 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.363e-06/0.4183, allocations: 4 kB / 467.2 MB, free: 5.203 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001059/0.4194, allocations: 315.9 kB / 467.5 MB, free: 4.895 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (106): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003977/0.4234, allocations: 2.478 MB / 470 MB, free: 2.371 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002901/0.4263, allocations: 1.465 MB / 471.5 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.4263, allocations: 0 / 471.5 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001462/0.4278, allocations: 0.8622 MB / 472.3 MB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005682/0.4283, allocations: 65.56 kB / 472.4 MB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01267/0.441, allocations: 7.645 MB / 480 MB, free: 7.965 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000651/0.4417, allocations: 1.005 MB / 481 MB, free: 6.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006024/0.4423, allocations: 146.6 kB / 481.2 MB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004835/0.4428, allocations: 343.3 kB / 481.5 MB, free: 6.445 MB / 398.1 MB Notification: Performance of SimCode: time 1.163e-06/0.4428, allocations: 0 / 481.5 MB, free: 6.445 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05109/0.4939, allocations: 17.33 MB / 498.8 MB, free: 5.348 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.19/22.68, allocations: 4.297 kB / 498.8 MB, free: 5.344 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches