Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.LinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001615/0.001615, allocations: 118.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.001867/0.001867, allocations: 198 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.524/1.524, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001727/0.001727, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.3022, allocations: 50.54 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.009273/0.3116, allocations: 6.494 MB / 415.3 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005486/0.3171, allocations: 2.632 MB / 417.9 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007851/0.3179, allocations: 16 kB / 417.9 MB, free: 8.375 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003423/0.3214, allocations: 1.279 MB / 419.2 MB, free: 7.094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002112/0.3235, allocations: 0.5318 MB / 419.7 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002773/0.3263, allocations: 1.245 MB / 421 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001776/0.3281, allocations: 1.083 MB / 422 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001474/0.3296, allocations: 0.8982 MB / 422.9 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006985/0.3303, allocations: 438.4 kB / 423.4 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007397/0.3311, allocations: 0.5602 MB / 423.9 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001586/0.3312, allocations: 96 kB / 424 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001009/0.3322, allocations: 423.6 kB / 424.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002517/0.3325, allocations: 223.2 kB / 424.7 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005657/0.3331, allocations: 0.5286 MB / 425.2 MB, free: 1.055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002254/0.3354, allocations: 1.529 MB / 426.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3354, allocations: 0 / 426.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3354, allocations: 0 / 426.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.112e-05/0.3354, allocations: 0 / 426.7 MB, free: 15.52 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004651/0.3401, allocations: 1.673 MB / 428.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.3401, allocations: 8.031 kB / 428.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002752/0.3404, allocations: 175.4 kB / 428.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003352/0.3438, allocations: 495.8 kB / 429 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008871/0.3447, allocations: 0.4982 MB / 429.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.752e-05/0.3448, allocations: 82.23 kB / 429.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001883/0.345, allocations: 119.9 kB / 429.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00194/0.3469, allocations: 0.9708 MB / 430.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.369e-05/0.347, allocations: 0 / 430.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001056/0.3471, allocations: 51.94 kB / 430.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.473e-05/0.3471, allocations: 24 kB / 430.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001968/0.3491, allocations: 0.9575 MB / 431.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006597/0.3557, allocations: 3.775 MB / 435.5 MB, free: 6.336 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002227/0.358, allocations: 1.541 MB / 437.1 MB, free: 4.621 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008331/0.3588, allocations: 438.6 kB / 437.5 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002182/0.359, allocations: 187.2 kB / 437.7 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009621/0.36, allocations: 474.5 kB / 438.1 MB, free: 3.488 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 2.815e-06/0.36, allocations: 0 / 438.1 MB, free: 3.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.009693/0.3697, allocations: 4.039 MB / 442.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/0.3699, allocations: 141.5 kB / 442.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005611/0.3705, allocations: 409.5 kB / 442.7 MB, free: 14.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.944e-05/0.3705, allocations: 45.7 kB / 442.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000398/0.371, allocations: 429 kB / 443.2 MB, free: 14.28 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000424/0.3714, allocations: 452 kB / 443.6 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003375/0.3717, allocations: 206.9 kB / 443.8 MB, free: 13.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002349/0.372, allocations: 374.8 kB / 444.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007582/0.3727, allocations: 362.4 kB / 444.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000957/0.3737, allocations: 0.5423 MB / 445.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00179/0.3755, allocations: 0.9421 MB / 446 MB, free: 11.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3755, allocations: 0 / 446 MB, free: 11.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002761/0.3783, allocations: 1.398 MB / 447.4 MB, free: 9.883 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.3783, allocations: 8 kB / 447.4 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.3783, allocations: 4 kB / 447.4 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009607/0.3793, allocations: 347.2 kB / 447.8 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008979/0.3802, allocations: 207.7 kB / 448 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009489/0.3897, allocations: 8.494 MB / 456.5 MB, free: 272 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008123/0.3906, allocations: 43.98 kB / 456.5 MB, free: 228 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.183e-05/0.3907, allocations: 52.05 kB / 456.6 MB, free: 176 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * 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): 4 systems {(1,4,100.0%), (1,2,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005435/0.3912, allocations: 265.5 kB / 456.8 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.3914, allocations: 75.53 kB / 456.9 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002742/0.3941, allocations: 1.301 MB / 458.2 MB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/0.3942, allocations: 12 kB / 458.2 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.3942, allocations: 8 kB / 458.2 MB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.3942, allocations: 11.97 kB / 458.2 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004576/0.3988, allocations: 2.526 MB / 460.8 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/0.3988, allocations: 7.938 kB / 460.8 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007368/0.3996, allocations: 155.8 kB / 460.9 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008314/0.4004, allocations: 329.4 kB / 461.2 MB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-05/0.4005, allocations: 28 kB / 461.3 MB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00883/0.4093, allocations: 8.121 MB / 469.4 MB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.4094, allocations: 4 kB / 469.4 MB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00348/0.4128, allocations: 1.829 MB / 471.2 MB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000388/0.4133, allocations: 228.5 kB / 471.4 MB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.4134, allocations: 24 kB / 471.5 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005282/0.4139, allocations: 47.91 kB / 471.5 MB, free: 496 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/0.4141, allocations: 104.8 kB / 471.6 MB, free: 392 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.581e-05/0.4142, allocations: 35.98 kB / 471.6 MB, free: 356 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003445/0.4146, allocations: 275.2 kB / 471.9 MB, free: 80 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4146, allocations: 0 / 471.9 MB, free: 80 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001224/0.4158, allocations: 316 kB / 472.2 MB, free: 15.77 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 4 systems {(1,19,100.0%), (1,2,100.0%), (1,4,100.0%), (1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004116/0.4199, allocations: 2.438 MB / 474.7 MB, free: 13.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003154/0.4231, allocations: 1.619 MB / 476.3 MB, free: 11.6 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.952e-06/0.4232, allocations: 0 / 476.3 MB, free: 11.6 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001887/0.4251, allocations: 1.151 MB / 477.4 MB, free: 10.4 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006747/0.4257, allocations: 73.55 kB / 477.5 MB, free: 10.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01356/0.4393, allocations: 7.417 MB / 484.9 MB, free: 2.629 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008466/0.4402, allocations: 1.024 MB / 485.9 MB, free: 1.574 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004469/0.4407, allocations: 98.17 kB / 486 MB, free: 1.477 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004872/0.4412, allocations: 347.3 kB / 486.4 MB, free: 1.137 MB / 398.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4412, allocations: 4 kB / 486.4 MB, free: 1.133 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08154/0.5227, allocations: 18.46 MB / 0.493 GB, free: 14.84 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.88/18.4, allocations: 8.719 kB / 0.493 GB, free: 14.84 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_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_LinearInductor.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches