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.001589/0.001589, allocations: 106.6 kB / 17.72 MB, free: 5.324 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.001591/0.001591, allocations: 194.9 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.5/1.5, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.002956/0.002956, allocations: 51.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1243, 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.2067/0.331, allocations: 6.442 MB / 381.1 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004772/0.3359, allocations: 2.593 MB / 383.7 MB, free: 8.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006056/0.3366, allocations: 23.75 kB / 383.7 MB, free: 8.914 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003081/0.3396, allocations: 1.276 MB / 385 MB, free: 8.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00203/0.3417, allocations: 0.7078 MB / 385.7 MB, free: 7.914 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002184/0.3439, allocations: 1.103 MB / 386.8 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00131/0.3452, allocations: 1.088 MB / 387.9 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001276/0.3465, allocations: 0.9056 MB / 388.8 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005633/0.3471, allocations: 455.4 kB / 389.2 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006778/0.3478, allocations: 0.5532 MB / 389.8 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001509/0.3479, allocations: 97.88 kB / 389.9 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001072/0.349, allocations: 413.7 kB / 390.3 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001925/0.3492, allocations: 242.2 kB / 390.5 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004705/0.3497, allocations: 0.5263 MB / 391 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002055/0.3517, allocations: 1.527 MB / 392.6 MB, free: 4.512 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3518, allocations: 0 / 392.6 MB, free: 4.512 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3518, allocations: 0 / 392.6 MB, free: 4.512 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.685e-05/0.3518, allocations: 5.375 kB / 392.6 MB, free: 4.508 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.004503/0.3563, allocations: 1.682 MB / 394.3 MB, free: 3.523 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.3564, allocations: 8.594 kB / 394.3 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002466/0.3566, allocations: 177.5 kB / 394.4 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003976/0.3606, allocations: 0.5789 MB / 395 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007606/0.3614, allocations: 0.4973 MB / 395.5 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.439e-05/0.3615, allocations: 85.73 kB / 395.6 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000167/0.3616, allocations: 116.4 kB / 395.7 MB, free: 2.789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002/0.3636, allocations: 1.012 MB / 396.7 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.953e-05/0.3637, allocations: 6.141 kB / 396.7 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.955e-05/0.3638, allocations: 55.33 kB / 396.8 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.841e-05/0.3638, allocations: 31 kB / 396.8 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001967/0.3658, allocations: 1.028 MB / 397.8 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006202/0.372, allocations: 3.846 MB / 401.7 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002946/0.375, allocations: 2.057 MB / 403.7 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009589/0.376, allocations: 448.2 kB / 404.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001441/0.3761, allocations: 108.4 kB / 404.3 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001015/0.3771, allocations: 477.8 kB / 404.8 MB, free: 13.03 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 3.176e-06/0.3772, allocations: 0 / 404.8 MB, free: 13.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=127): time 0.01019/0.3873, allocations: 4.045 MB / 408.8 MB, free: 10.65 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/0.3875, allocations: 146.2 kB / 408.9 MB, free: 10.49 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005865/0.3881, allocations: 420.3 kB / 409.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.539e-05/0.3882, allocations: 47.23 kB / 409.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004099/0.3886, allocations: 454.6 kB / 409.8 MB, free: 9.777 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004349/0.3891, allocations: 450.5 kB / 410.3 MB, free: 9.383 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003672/0.3894, allocations: 213.3 kB / 410.5 MB, free: 9.258 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002235/0.3897, allocations: 386 kB / 410.9 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008054/0.3905, allocations: 361.8 kB / 411.2 MB, free: 8.715 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009494/0.3914, allocations: 0.5877 MB / 411.8 MB, free: 8.273 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001736/0.3932, allocations: 0.9942 MB / 412.8 MB, free: 7.633 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.3932, allocations: 1.312 kB / 412.8 MB, free: 7.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002925/0.3961, allocations: 1.447 MB / 414.3 MB, free: 6.867 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.3962, allocations: 7.469 kB / 414.3 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.822e-05/0.3962, allocations: 5.594 kB / 414.3 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.3973, allocations: 354.2 kB / 414.6 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009237/0.3982, allocations: 221.1 kB / 414.8 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01025/0.4085, allocations: 8.498 MB / 423.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001011/0.4095, allocations: 47.98 kB / 423.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.44e-05/0.4096, allocations: 52.05 kB / 423.4 MB, free: 13.7 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.0005994/0.4102, allocations: 261.6 kB / 423.7 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001437/0.4104, allocations: 75.53 kB / 423.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002814/0.4132, allocations: 1.333 MB / 425.1 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.579e-05/0.4132, allocations: 15.94 kB / 425.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.4133, allocations: 8 kB / 425.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.4133, allocations: 7.984 kB / 425.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005089/0.4184, allocations: 2.553 MB / 427.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.4184, allocations: 0 / 427.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007295/0.4191, allocations: 163.7 kB / 427.8 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009412/0.4201, allocations: 327.2 kB / 428.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.939e-05/0.4202, allocations: 28 kB / 428.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009244/0.4294, allocations: 8.116 MB / 436.3 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.897e-06/0.4295, allocations: 7.984 kB / 436.3 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003848/0.4333, allocations: 1.853 MB / 438.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005189/0.4339, allocations: 224.6 kB / 438.4 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001724/0.4341, allocations: 24 kB / 438.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006496/0.4347, allocations: 43.97 kB / 438.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002437/0.435, allocations: 92.88 kB / 438.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.403e-05/0.4351, allocations: 35.98 kB / 438.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000439/0.4355, allocations: 283.1 kB / 438.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4355, allocations: 3.938 kB / 438.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001639/0.4372, allocations: 319.9 kB / 439.2 MB, free: 13.21 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.004213/0.4414, allocations: 2.455 MB / 441.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00333/0.4447, allocations: 1.647 MB / 443.3 MB, free: 8.996 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.4448, allocations: 0 / 443.3 MB, free: 8.996 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002008/0.4468, allocations: 1.151 MB / 444.4 MB, free: 7.797 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007543/0.4475, allocations: 78.91 kB / 444.5 MB, free: 7.723 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01474/0.4623, allocations: 7.571 MB / 452.1 MB, free: 15.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/0.4634, allocations: 1.032 MB / 453.1 MB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005192/0.4639, allocations: 106.4 kB / 453.2 MB, free: 14.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00057/0.4645, allocations: 359.2 kB / 453.5 MB, free: 14.32 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4645, allocations: 4 kB / 453.5 MB, free: 14.31 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06319/0.5277, allocations: 18.51 MB / 472.1 MB, free: 11.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.49/19.02, allocations: 0 / 472.1 MB, free: 11.74 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