Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.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.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",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.001151/0.001151, allocations: 104.9 kB / 17.72 MB, free: 5.242 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.001043/0.001043, allocations: 188.1 kB / 18.66 MB, free: 4.312 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.36/1.36, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.00152/0.00152, allocations: 47.94 kB / 328 MB, free: 3.836 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09699/0.09853, allocations: 46.63 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor): time 0.004702/0.1033, allocations: 2.66 MB / 377.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001896/0.1052, allocations: 0.9158 MB / 378.2 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002918/0.1055, allocations: 4 kB / 378.2 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003298/0.1059, allocations: 63.39 kB / 378.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004642/0.1064, allocations: 103.2 kB / 378.4 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003474/0.1067, allocations: 99.81 kB / 378.5 MB, free: 1.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000512/0.1073, allocations: 350.7 kB / 378.8 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002325/0.1075, allocations: 105.7 kB / 378.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000263/0.1078, allocations: 139.5 kB / 379.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002604/0.108, allocations: 147.3 kB / 379.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.066e-05/0.1081, allocations: 32 kB / 379.2 MB, free: 480 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.807e-05/0.1082, allocations: 28 kB / 379.3 MB, free: 452 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.212e-05/0.1083, allocations: 67.75 kB / 379.3 MB, free: 384 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001768/0.1084, allocations: 163.2 kB / 379.5 MB, free: 220 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1931/0.3015, allocations: 356.8 kB / 379.8 MB, free: 10.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.3016, allocations: 0.8438 kB / 379.8 MB, free: 10.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3016, allocations: 0 / 379.8 MB, free: 10.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.264e-05/0.3016, allocations: 1.375 kB / 379.8 MB, free: 10.02 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001235/0.3029, allocations: 0.5939 MB / 380.4 MB, free: 9.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.3029, allocations: 13.86 kB / 380.4 MB, free: 9.586 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.587e-05/0.303, allocations: 65.08 kB / 380.5 MB, free: 9.547 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.824e-05/0.3031, allocations: 36.72 kB / 380.5 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004122/0.3035, allocations: 262.5 kB / 380.8 MB, free: 9.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.087e-05/0.3036, allocations: 23.28 kB / 380.8 MB, free: 9.305 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.939e-05/0.3036, allocations: 26.16 kB / 380.8 MB, free: 9.305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005037/0.3041, allocations: 250.3 kB / 381.1 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.3042, allocations: 0.5625 kB / 381.1 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.814e-05/0.3042, allocations: 12.56 kB / 381.1 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.3042, allocations: 6.719 kB / 381.1 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004625/0.3047, allocations: 212.4 kB / 381.3 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.3064, allocations: 0.9995 MB / 382.3 MB, free: 8.754 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000482/0.3068, allocations: 202.7 kB / 382.5 MB, free: 8.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002888/0.3071, allocations: 116.5 kB / 382.6 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.3072, allocations: 3.969 kB / 382.6 MB, free: 8.723 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.3072, allocations: 35.25 kB / 382.7 MB, free: 8.684 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.3072, allocations: 0 / 382.7 MB, free: 8.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.005229/0.3125, allocations: 1.545 MB / 384.2 MB, free: 8.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.031e-05/0.3125, allocations: 58.94 kB / 384.3 MB, free: 8.148 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002513/0.3128, allocations: 225.6 kB / 384.5 MB, free: 8.047 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.461e-05/0.3128, allocations: 34.52 kB / 384.5 MB, free: 8.016 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.577e-05/0.3129, allocations: 183.2 kB / 384.7 MB, free: 7.891 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.132e-05/0.313, allocations: 116.2 kB / 384.8 MB, free: 7.812 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/0.3131, allocations: 63.22 kB / 384.9 MB, free: 7.793 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.828e-05/0.3132, allocations: 343.7 kB / 385.2 MB, free: 7.477 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002405/0.3135, allocations: 106 kB / 385.3 MB, free: 7.477 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002639/0.3137, allocations: 162.6 kB / 385.5 MB, free: 7.434 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004961/0.3143, allocations: 283.9 kB / 385.7 MB, free: 7.309 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3143, allocations: 1.156 kB / 385.7 MB, free: 7.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001496/0.3158, allocations: 0.5328 MB / 386.3 MB, free: 7.098 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.3158, allocations: 5.75 kB / 386.3 MB, free: 7.098 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/0.3158, allocations: 6.484 kB / 386.3 MB, free: 7.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001215/0.317, allocations: 238.1 kB / 386.5 MB, free: 7.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002749/0.3173, allocations: 59.48 kB / 386.6 MB, free: 7.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004451/0.3218, allocations: 4.135 MB / 390.7 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002603/0.3221, allocations: 15.77 kB / 390.7 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.578e-05/0.3221, allocations: 13.62 kB / 390.7 MB, free: 3.43 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001677/0.3223, allocations: 151.1 kB / 390.9 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.467e-05/0.3224, allocations: 24.44 kB / 390.9 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.871e-05/0.3224, allocations: 46.77 kB / 391 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.3225, allocations: 4.312 kB / 391 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.3225, allocations: 5.031 kB / 391 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.3225, allocations: 3.438 kB / 391 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002047/0.3245, allocations: 0.9845 MB / 392 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3246, allocations: 1.656 kB / 392 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002081/0.3248, allocations: 44.95 kB / 392 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001163/0.3259, allocations: 236.1 kB / 392.2 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/0.326, allocations: 6.938 kB / 392.2 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004159/0.3301, allocations: 4.126 MB / 396.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.3302, allocations: 2.562 kB / 396.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/0.3321, allocations: 0.7298 MB / 397.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001808/0.3323, allocations: 107 kB / 397.2 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.673e-05/0.3324, allocations: 11.14 kB / 397.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.3326, allocations: 12.61 kB / 397.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.516e-05/0.3327, allocations: 31.42 kB / 397.3 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.406e-05/0.3327, allocations: 8.281 kB / 397.3 MB, free: 14.51 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001748/0.3329, allocations: 167.1 kB / 397.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3329, allocations: 0 / 397.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006455/0.3336, allocations: 100.2 kB / 397.5 MB, free: 14.39 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00225/0.3358, allocations: 1.279 MB / 398.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.337, allocations: 0.5706 MB / 399.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.337, allocations: 320 / 399.4 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006395/0.3377, allocations: 433.2 kB / 399.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003411/0.338, allocations: 24.02 kB / 399.8 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006307/0.3443, allocations: 3.347 MB / 403.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004892/0.3448, allocations: 0.7765 MB / 404 MB, free: 9.996 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.345, allocations: 24.05 kB / 404 MB, free: 9.992 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.3451, allocations: 96.52 kB / 404.1 MB, free: 9.922 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3451, allocations: 0 / 404.1 MB, free: 9.922 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04082/0.3859, allocations: 8.383 MB / 412.5 MB, free: 6.656 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.54, allocations: 9.234 kB / 412.5 MB, free: 6.648 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 4e-05 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches