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.001099/0.001099, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001283/0.001283, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 59.16 kB / 307 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08711/0.08833, allocations: 50.54 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.008004/0.09637, allocations: 6.477 MB / 364.1 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004573/0.101, allocations: 2.639 MB / 366.7 MB, free: 4.793 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006867/0.1017, allocations: 20 kB / 366.7 MB, free: 4.773 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00299/0.1047, allocations: 1.271 MB / 368 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002073/0.1068, allocations: 0.5356 MB / 368.5 MB, free: 2.961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002591/0.1094, allocations: 1.253 MB / 369.8 MB, free: 1.707 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001638/0.1111, allocations: 1.071 MB / 370.9 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1517/0.2628, allocations: 0.9078 MB / 371.8 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007753/0.2636, allocations: 444.2 kB / 372.2 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006049/0.2642, allocations: 0.5432 MB / 372.7 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001443/0.2644, allocations: 96.66 kB / 372.8 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008782/0.2652, allocations: 420 kB / 373.2 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001721/0.2654, allocations: 237.4 kB / 373.5 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004436/0.2659, allocations: 0.5133 MB / 374 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001803/0.2677, allocations: 1.517 MB / 375.5 MB, free: 9.078 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.2677, allocations: 0 / 375.5 MB, free: 9.078 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2677, allocations: 1.688 kB / 375.5 MB, free: 9.078 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.738e-05/0.2678, allocations: 0 / 375.5 MB, free: 9.078 MB / 302.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.004397/0.2722, allocations: 1.637 MB / 377.1 MB, free: 8.383 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.2722, allocations: 13.25 kB / 377.2 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002214/0.2724, allocations: 168.8 kB / 377.3 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003213/0.2757, allocations: 494.3 kB / 377.8 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006228/0.2763, allocations: 0.4883 MB / 378.3 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.267e-05/0.2764, allocations: 85.89 kB / 378.4 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.2765, allocations: 113.5 kB / 378.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001798/0.2783, allocations: 0.9727 MB / 379.5 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.544e-05/0.2784, allocations: 8.812 kB / 379.5 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.371e-05/0.2785, allocations: 48.8 kB / 379.5 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.115e-05/0.2785, allocations: 27.5 kB / 379.5 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001762/0.2803, allocations: 0.9608 MB / 380.5 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005369/0.2857, allocations: 3.793 MB / 384.3 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001742/0.2874, allocations: 1.553 MB / 385.9 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007524/0.2882, allocations: 440.7 kB / 386.3 MB, free: 4.047 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001219/0.2883, allocations: 180.7 kB / 386.5 MB, free: 3.859 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008114/0.2891, allocations: 474.4 kB / 386.9 MB, free: 3.633 MB / 302.1 MB Notification: Performance of pre-optimization done (n=96): time 2.855e-06/0.2892, allocations: 0.875 kB / 386.9 MB, free: 3.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.00874/0.2979, allocations: 4 MB / 390.9 MB, free: 1.703 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.632e-05/0.298, allocations: 146.3 kB / 391.1 MB, free: 1.539 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004559/0.2985, allocations: 407.8 kB / 391.5 MB, free: 1.332 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.955e-05/0.2985, allocations: 47.27 kB / 391.5 MB, free: 1.285 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002286/0.2988, allocations: 425.2 kB / 391.9 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002322/0.299, allocations: 424.3 kB / 392.3 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002768/0.2993, allocations: 205.6 kB / 392.5 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.96e-05/0.2994, allocations: 379.6 kB / 392.9 MB, free: 188 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006665/0.3, allocations: 357.3 kB / 393.3 MB, free: 52 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/0.3011, allocations: 0.5605 MB / 393.8 MB, free: 15.79 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/0.3028, allocations: 0.9397 MB / 394.8 MB, free: 15.26 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.774e-06/0.3028, allocations: 1.5 kB / 394.8 MB, free: 15.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002655/0.3054, allocations: 1.387 MB / 396.1 MB, free: 14.7 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.3055, allocations: 10.06 kB / 396.2 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.3055, allocations: 4.312 kB / 396.2 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009321/0.3064, allocations: 357.2 kB / 396.5 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008281/0.3073, allocations: 207.7 kB / 396.7 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007442/0.3147, allocations: 8.491 MB / 405.2 MB, free: 6.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007666/0.3155, allocations: 50.05 kB / 405.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.854e-05/0.3156, allocations: 41.72 kB / 405.3 MB, free: 6.895 MB / 318.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.0004818/0.3161, allocations: 259 kB / 405.5 MB, free: 6.691 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.3163, allocations: 70.59 kB / 405.6 MB, free: 6.656 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002559/0.3188, allocations: 1.312 MB / 406.9 MB, free: 5.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.3189, allocations: 12.53 kB / 406.9 MB, free: 5.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.545e-05/0.3189, allocations: 7.938 kB / 406.9 MB, free: 5.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.54e-05/0.3189, allocations: 3.984 kB / 407 MB, free: 5.906 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004297/0.3232, allocations: 2.543 MB / 409.5 MB, free: 3.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.3232, allocations: 4 kB / 409.5 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006919/0.3239, allocations: 151.8 kB / 409.6 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007859/0.3247, allocations: 330 kB / 410 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.138e-05/0.3248, allocations: 35.92 kB / 410 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00707/0.3319, allocations: 8.11 MB / 418.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.3319, allocations: 7.938 kB / 418.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003286/0.3352, allocations: 1.827 MB / 419.9 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003602/0.3356, allocations: 220.2 kB / 420.2 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.3357, allocations: 24 kB / 420.2 MB, free: 8.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005592/0.3363, allocations: 43.98 kB / 420.2 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001929/0.3365, allocations: 99.42 kB / 420.3 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.33e-05/0.3366, allocations: 36 kB / 420.4 MB, free: 7.922 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003167/0.3369, allocations: 283.1 kB / 420.6 MB, free: 7.645 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3369, allocations: 0 / 420.6 MB, free: 7.645 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001333/0.3382, allocations: 323.9 kB / 421 MB, free: 7.328 MB / 334.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.003766/0.342, allocations: 2.446 MB / 423.4 MB, free: 4.863 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00345/0.3455, allocations: 1.653 MB / 425.1 MB, free: 3.184 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.3455, allocations: 0 / 425.1 MB, free: 3.184 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001677/0.3472, allocations: 1.148 MB / 426.2 MB, free: 2.008 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007244/0.3479, allocations: 76.28 kB / 426.3 MB, free: 1.934 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01208/0.36, allocations: 7.568 MB / 433.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006644/0.3607, allocations: 1.024 MB / 434.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005284/0.3612, allocations: 110.1 kB / 435 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004354/0.3617, allocations: 351.3 kB / 435.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of SimCode: time 1.883e-06/0.3617, allocations: 0 / 435.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07671/0.4384, allocations: 18.15 MB / 453.5 MB, free: 6.695 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.856/10.29, allocations: 3.859 kB / 453.5 MB, free: 6.691 MB / 366.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