Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.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.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001396/0.001396, allocations: 121.7 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001452/0.001453, allocations: 200.6 kB / 18.73 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 71.83 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3023/0.3042, allocations: 50.53 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.004404/0.3087, allocations: 2.772 MB / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001851/0.3105, allocations: 0.9423 MB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.3107, allocations: 12 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002698/0.311, allocations: 59.48 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000288/0.3113, allocations: 107.1 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003275/0.3117, allocations: 111.7 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004329/0.3121, allocations: 362.6 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002256/0.3123, allocations: 105.7 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002465/0.3126, allocations: 147.4 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002307/0.3128, allocations: 151.3 kB / 413.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.555e-05/0.3129, allocations: 28 kB / 413.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.534e-05/0.313, allocations: 32 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.727e-05/0.313, allocations: 67.75 kB / 413.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001639/0.3132, allocations: 159.2 kB / 413.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004636/0.3137, allocations: 373.4 kB / 414.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3137, allocations: 4 kB / 414.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3137, allocations: 0 / 414.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.3137, allocations: 0 / 414.1 MB, free: 12.11 MB / 334.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.001124/0.3148, allocations: 0.6194 MB / 414.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.3149, allocations: 8.031 kB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.444e-05/0.315, allocations: 62.72 kB / 414.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001865/0.3152, allocations: 40.75 kB / 414.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000435/0.3156, allocations: 268.8 kB / 415.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.776e-05/0.3157, allocations: 28.81 kB / 415.2 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.389e-05/0.3157, allocations: 24.38 kB / 415.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005002/0.3162, allocations: 257 kB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.3163, allocations: 0 / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.703e-05/0.3163, allocations: 12 kB / 415.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.3163, allocations: 4 kB / 415.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004518/0.3168, allocations: 206.1 kB / 415.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001668/0.3185, allocations: 1.009 MB / 416.7 MB, free: 9.398 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004461/0.3189, allocations: 202.6 kB / 416.9 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002615/0.3192, allocations: 112.8 kB / 417 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.3192, allocations: 7.984 kB / 417 MB, free: 9.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.3193, allocations: 38.59 kB / 417 MB, free: 9.023 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.523e-06/0.3193, allocations: 0 / 417 MB, free: 9.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.005321/0.3246, allocations: 1.553 MB / 418.6 MB, free: 7.398 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.3247, allocations: 59.34 kB / 418.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002597/0.3249, allocations: 237 kB / 418.9 MB, free: 7.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.513e-05/0.325, allocations: 37.7 kB / 418.9 MB, free: 7.047 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.3251, allocations: 184.5 kB / 419.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.3252, allocations: 126.9 kB / 419.2 MB, free: 6.738 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.3254, allocations: 66.06 kB / 419.3 MB, free: 6.664 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.3255, allocations: 334.8 kB / 419.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002501/0.3258, allocations: 104.7 kB / 419.7 MB, free: 6.227 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003014/0.3261, allocations: 157.7 kB / 419.8 MB, free: 6.059 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005374/0.3267, allocations: 287.6 kB / 420.1 MB, free: 5.762 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3267, allocations: 4 kB / 420.1 MB, free: 5.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001641/0.3283, allocations: 0.5374 MB / 420.7 MB, free: 5.207 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.3283, allocations: 6.812 kB / 420.7 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.3284, allocations: 4 kB / 420.7 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001319/0.3297, allocations: 241.5 kB / 420.9 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002805/0.33, allocations: 55.91 kB / 421 MB, free: 4.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005248/0.3352, allocations: 4.141 MB / 425.1 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002412/0.3355, allocations: 12.06 kB / 425.1 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.285e-05/0.3355, allocations: 15.98 kB / 425.1 MB, free: 468 kB / 334.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.0002031/0.3357, allocations: 153.7 kB / 425.3 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.914e-05/0.3358, allocations: 27.84 kB / 425.3 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.959e-05/0.3359, allocations: 34.97 kB / 425.4 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.3359, allocations: 4 kB / 425.4 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/0.3359, allocations: 4.281 kB / 425.4 MB, free: 232 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3359, allocations: 7.922 kB / 425.4 MB, free: 224 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002228/0.3382, allocations: 0.993 MB / 426.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.3382, allocations: 3.938 kB / 426.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002053/0.3384, allocations: 39.98 kB / 426.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001205/0.3396, allocations: 241.5 kB / 426.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.3397, allocations: 4 kB / 426.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005034/0.3447, allocations: 4.126 MB / 430.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3447, allocations: 0 / 430.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001879/0.3466, allocations: 0.7259 MB / 431.5 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.216e-05/0.3467, allocations: 104.9 kB / 431.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.476e-05/0.3468, allocations: 7.938 kB / 431.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002321/0.347, allocations: 12 kB / 431.6 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.249e-05/0.3471, allocations: 44.22 kB / 431.7 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-05/0.3471, allocations: 8 kB / 431.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001849/0.3473, allocations: 172.5 kB / 431.8 MB, free: 9.355 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3473, allocations: 3.938 kB / 431.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006171/0.3479, allocations: 100 kB / 431.9 MB, free: 9.254 MB / 350.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.002206/0.3502, allocations: 1.292 MB / 433.2 MB, free: 7.926 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.3513, allocations: 0.5596 MB / 433.8 MB, free: 7.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3513, allocations: 0 / 433.8 MB, free: 7.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006565/0.352, allocations: 433.5 kB / 434.2 MB, free: 6.891 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003474/0.3523, allocations: 24.42 kB / 434.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006394/0.3587, allocations: 3.37 MB / 437.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004602/0.3592, allocations: 0.7762 MB / 438.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001033/0.3593, allocations: 26.27 kB / 438.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.3595, allocations: 91.41 kB / 438.5 MB, free: 2.438 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3595, allocations: 0 / 438.5 MB, free: 2.438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04394/0.4034, allocations: 8.498 MB / 447 MB, free: 10.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.36, allocations: 3.984 kB / 447 MB, free: 10.12 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.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_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches