Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 107.7 kB / 17.73 MB, free: 5.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00187/0.00187, allocations: 188.2 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 55.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09066/0.09194, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.1958/0.2878, allocations: 6.445 MB / 381.1 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004216/0.2921, allocations: 2.584 MB / 383.7 MB, free: 8.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005875/0.2928, allocations: 22.75 kB / 383.7 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002908/0.2957, allocations: 1.284 MB / 385 MB, free: 8.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001701/0.2974, allocations: 0.7134 MB / 385.7 MB, free: 7.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002104/0.2995, allocations: 1.097 MB / 386.8 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001455/0.301, allocations: 1.097 MB / 387.9 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001321/0.3023, allocations: 0.9014 MB / 388.8 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006588/0.303, allocations: 455.9 kB / 389.2 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006614/0.3037, allocations: 0.5582 MB / 389.8 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001513/0.3038, allocations: 97.59 kB / 389.9 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001018/0.3048, allocations: 413.6 kB / 390.3 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001812/0.305, allocations: 237.9 kB / 390.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004592/0.3055, allocations: 0.53 MB / 391.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002044/0.3075, allocations: 1.527 MB / 392.6 MB, free: 4.516 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3076, allocations: 0 / 392.6 MB, free: 4.516 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3076, allocations: 0 / 392.6 MB, free: 4.516 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.692e-05/0.3076, allocations: 4 kB / 392.6 MB, free: 4.512 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.004704/0.3123, allocations: 1.682 MB / 394.3 MB, free: 3.527 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/0.3124, allocations: 10.52 kB / 394.3 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002735/0.3127, allocations: 172.6 kB / 394.4 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00401/0.3167, allocations: 0.5798 MB / 395 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008554/0.3176, allocations: 0.4939 MB / 395.5 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.39e-05/0.3176, allocations: 85.58 kB / 395.6 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001715/0.3178, allocations: 115.8 kB / 395.7 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002036/0.3199, allocations: 1.016 MB / 396.7 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.724e-05/0.3199, allocations: 5.375 kB / 396.7 MB, free: 2.363 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/0.32, allocations: 50.16 kB / 396.8 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.924e-05/0.3201, allocations: 28.16 kB / 396.8 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001924/0.322, allocations: 1.029 MB / 397.8 MB, free: 1.969 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005914/0.3279, allocations: 3.849 MB / 401.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002476/0.3304, allocations: 2.059 MB / 403.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008623/0.3313, allocations: 443.7 kB / 404.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001574/0.3315, allocations: 116.9 kB / 404.3 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009236/0.3324, allocations: 473.5 kB / 404.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 4.338e-06/0.3324, allocations: 0 / 404.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.01022/0.3426, allocations: 4.043 MB / 408.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.605e-05/0.3428, allocations: 143.5 kB / 408.9 MB, free: 10.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005564/0.3433, allocations: 420.1 kB / 409.4 MB, free: 10.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.152e-05/0.3434, allocations: 47.11 kB / 409.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003823/0.3438, allocations: 462.7 kB / 409.9 MB, free: 9.785 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003968/0.3442, allocations: 454.9 kB / 410.3 MB, free: 9.387 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003577/0.3446, allocations: 209.3 kB / 410.5 MB, free: 9.266 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.3448, allocations: 385.9 kB / 410.9 MB, free: 8.895 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007528/0.3455, allocations: 360.5 kB / 411.2 MB, free: 8.723 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008906/0.3465, allocations: 0.5866 MB / 411.8 MB, free: 8.281 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/0.348, allocations: 1.001 MB / 412.8 MB, free: 7.637 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.348, allocations: 0.875 kB / 412.8 MB, free: 7.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.00274/0.3508, allocations: 1.442 MB / 414.3 MB, free: 6.875 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.3508, allocations: 10.88 kB / 414.3 MB, free: 6.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.3508, allocations: 5.5 kB / 414.3 MB, free: 6.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009289/0.3518, allocations: 350.5 kB / 414.6 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008836/0.3527, allocations: 221.9 kB / 414.8 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007699/0.3604, allocations: 8.494 MB / 423.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009334/0.3613, allocations: 51.92 kB / 423.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.194e-05/0.3614, allocations: 52.06 kB / 423.4 MB, free: 13.71 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * 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.0005082/0.362, allocations: 261.6 kB / 423.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.3621, allocations: 75.53 kB / 423.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002487/0.3646, allocations: 1.329 MB / 425.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.3646, allocations: 16.06 kB / 425.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/0.3646, allocations: 12 kB / 425.1 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.3646, allocations: 11.97 kB / 425.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004094/0.3687, allocations: 2.549 MB / 427.7 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.3688, allocations: 0 / 427.7 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006952/0.3695, allocations: 159.8 kB / 427.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008098/0.3703, allocations: 327.2 kB / 428.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.24e-05/0.3704, allocations: 31.98 kB / 428.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007117/0.3775, allocations: 8.109 MB / 436.3 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.3775, allocations: 4 kB / 436.3 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00335/0.3809, allocations: 1.853 MB / 438.2 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004578/0.3813, allocations: 224.6 kB / 438.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/0.3815, allocations: 27.94 kB / 438.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006325/0.3822, allocations: 39.98 kB / 438.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/0.3824, allocations: 96.86 kB / 438.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.506e-05/0.3824, allocations: 36 kB / 438.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003627/0.3828, allocations: 283.1 kB / 438.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3828, allocations: 0 / 438.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001541/0.3844, allocations: 323.9 kB / 439.2 MB, free: 13.23 MB / 366.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) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 82 * 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.003737/0.3881, allocations: 2.455 MB / 441.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002955/0.3911, allocations: 1.655 MB / 443.3 MB, free: 9.012 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.3911, allocations: 0 / 443.3 MB, free: 9.012 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001633/0.3927, allocations: 1.147 MB / 444.4 MB, free: 7.816 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006435/0.3934, allocations: 77.48 kB / 444.5 MB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01331/0.4067, allocations: 7.572 MB / 452.1 MB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009107/0.4077, allocations: 1.028 MB / 453.1 MB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004853/0.4082, allocations: 106.4 kB / 453.2 MB, free: 14.69 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005106/0.4087, allocations: 355.3 kB / 453.5 MB, free: 14.34 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4087, allocations: 4 kB / 453.5 MB, free: 14.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05547/0.4642, allocations: 18.52 MB / 472.1 MB, free: 11.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.28/17.74, allocations: 0 / 472.1 MB, free: 11.75 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/LinearInductor/LinearInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches