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.001617/0.001617, 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.001933/0.001933, 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.481/1.481, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.2996, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.008225/0.3079, allocations: 6.49 MB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004879/0.3128, allocations: 2.632 MB / 417.9 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008581/0.3137, allocations: 23.94 kB / 417.9 MB, free: 8.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003292/0.317, allocations: 1.268 MB / 419.2 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002002/0.3191, allocations: 0.5357 MB / 419.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002661/0.3217, allocations: 1.253 MB / 421 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001682/0.3234, allocations: 1.079 MB / 422 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001559/0.325, allocations: 0.8982 MB / 422.9 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007271/0.3258, allocations: 450.3 kB / 423.4 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008397/0.3266, allocations: 0.5485 MB / 423.9 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00024/0.3269, allocations: 100 kB / 424 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001023/0.3279, allocations: 419.6 kB / 424.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002482/0.3282, allocations: 235.1 kB / 424.7 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006354/0.3288, allocations: 0.517 MB / 425.2 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002316/0.3311, allocations: 1.529 MB / 426.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.3312, allocations: 4 kB / 426.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3312, allocations: 0 / 426.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.94e-05/0.3312, allocations: 0 / 426.7 MB, free: 15.5 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.004874/0.3361, allocations: 1.665 MB / 428.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.3362, allocations: 12.03 kB / 428.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003116/0.3365, allocations: 171.4 kB / 428.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003379/0.3399, allocations: 0.492 MB / 429 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008141/0.3407, allocations: 0.4943 MB / 429.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.857e-05/0.3408, allocations: 82.23 kB / 429.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001977/0.341, allocations: 116 kB / 429.7 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001981/0.343, allocations: 0.9785 MB / 430.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.531e-05/0.343, allocations: 0 / 430.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.957e-05/0.3431, allocations: 48 kB / 430.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.157e-05/0.3432, allocations: 24 kB / 430.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001909/0.3451, allocations: 0.9614 MB / 431.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00632/0.3514, allocations: 3.767 MB / 435.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002129/0.3536, allocations: 1.556 MB / 437.1 MB, free: 4.594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007887/0.3544, allocations: 442.6 kB / 437.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001776/0.3546, allocations: 179.2 kB / 437.7 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008757/0.3555, allocations: 470.5 kB / 438.1 MB, free: 3.469 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 4.659e-06/0.3555, allocations: 0 / 438.1 MB, free: 3.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.009615/0.3651, allocations: 4.023 MB / 442.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.539e-05/0.3652, allocations: 153.5 kB / 442.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004877/0.3657, allocations: 413.4 kB / 442.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.921e-05/0.3658, allocations: 53.64 kB / 442.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003085/0.3661, allocations: 433 kB / 443.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000324/0.3665, allocations: 452.1 kB / 443.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003087/0.3668, allocations: 198.9 kB / 443.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.3669, allocations: 382.8 kB / 444.2 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007481/0.3677, allocations: 354.5 kB / 444.5 MB, free: 12.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008585/0.3686, allocations: 0.5429 MB / 445.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001599/0.3702, allocations: 0.9382 MB / 446 MB, free: 11.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.3702, allocations: 4 kB / 446 MB, free: 11.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002606/0.3728, allocations: 1.39 MB / 447.4 MB, free: 9.863 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.3728, allocations: 8 kB / 447.4 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.3729, allocations: 4 kB / 447.4 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009222/0.3738, allocations: 363.1 kB / 447.8 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008224/0.3746, allocations: 195.7 kB / 448 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008051/0.3827, allocations: 8.504 MB / 456.5 MB, free: 244 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000813/0.3835, allocations: 43.98 kB / 456.5 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001271/0.3837, allocations: 48 kB / 456.6 MB, free: 152 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.000549/0.3842, allocations: 261.7 kB / 456.8 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001654/0.3844, allocations: 75.53 kB / 456.9 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002637/0.3871, allocations: 1.305 MB / 458.2 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.3871, allocations: 16 kB / 458.2 MB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.511e-05/0.3871, allocations: 4 kB / 458.2 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.564e-05/0.3871, allocations: 7.984 kB / 458.2 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004276/0.3914, allocations: 2.537 MB / 460.8 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.3914, allocations: 0 / 460.8 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006835/0.3921, allocations: 155.8 kB / 460.9 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008078/0.3929, allocations: 330.4 kB / 461.2 MB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-05/0.393, allocations: 28 kB / 461.3 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007384/0.4004, allocations: 8.109 MB / 469.4 MB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.4004, allocations: 4.031 kB / 469.4 MB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003309/0.4038, allocations: 1.837 MB / 471.2 MB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003678/0.4041, allocations: 228.5 kB / 471.4 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001167/0.4043, allocations: 20 kB / 471.5 MB, free: 0.5117 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005422/0.4048, allocations: 43.92 kB / 471.5 MB, free: 480 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000187/0.405, allocations: 96.8 kB / 471.6 MB, free: 384 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.393e-05/0.4051, allocations: 43.94 kB / 471.6 MB, free: 340 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003072/0.4054, allocations: 279.1 kB / 471.9 MB, free: 60 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4054, allocations: 0 / 471.9 MB, free: 60 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001238/0.4067, allocations: 312 kB / 472.2 MB, free: 15.75 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.003538/0.4102, allocations: 2.446 MB / 474.7 MB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00287/0.4131, allocations: 1.624 MB / 476.3 MB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.4131, allocations: 0 / 476.3 MB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001662/0.4148, allocations: 1.146 MB / 477.4 MB, free: 10.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006297/0.4154, allocations: 73.55 kB / 477.5 MB, free: 10.31 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01211/0.4276, allocations: 7.417 MB / 484.9 MB, free: 2.605 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008254/0.4284, allocations: 1.024 MB / 486 MB, free: 1.551 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004676/0.4289, allocations: 102.2 kB / 486.1 MB, free: 1.449 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005229/0.4294, allocations: 347.3 kB / 486.4 MB, free: 1.109 MB / 398.1 MB Notification: Performance of SimCode: time 1.764e-06/0.4295, allocations: 0 / 486.4 MB, free: 1.109 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05803/0.4875, allocations: 18.46 MB / 0.493 GB, free: 14.81 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.97/17.46, allocations: 12.95 kB / 0.493 GB, free: 14.8 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.0.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