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.001652/0.001652, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002537/0.002537, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 55.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2761, allocations: 50.55 MB / 408.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.004164/0.2803, allocations: 2.776 MB / 411.5 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00171/0.2821, allocations: 0.9423 MB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002752/0.2824, allocations: 8 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003135/0.2827, allocations: 59.44 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004372/0.2832, allocations: 111.2 kB / 412.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003748/0.2836, allocations: 107.8 kB / 412.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000505/0.2841, allocations: 358.6 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002318/0.2843, allocations: 105.7 kB / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002987/0.2846, allocations: 151.4 kB / 413.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000253/0.2849, allocations: 147.3 kB / 413.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.645e-05/0.285, allocations: 32 kB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.2851, allocations: 31.98 kB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.681e-05/0.2852, allocations: 71.77 kB / 413.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001567/0.2853, allocations: 159.2 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005124/0.2858, allocations: 369.5 kB / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.2859, allocations: 0 / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2859, allocations: 0 / 414.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.781e-05/0.2859, allocations: 0 / 414.1 MB, free: 12.09 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.001139/0.2871, allocations: 0.6155 MB / 414.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.2871, allocations: 8.031 kB / 414.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.527e-05/0.2872, allocations: 62.72 kB / 414.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001751/0.2874, allocations: 44.73 kB / 414.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005079/0.2879, allocations: 272.7 kB / 415.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.147e-05/0.2879, allocations: 24.94 kB / 415.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.102e-05/0.288, allocations: 28.38 kB / 415.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006643/0.2887, allocations: 249 kB / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.2887, allocations: 0 / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.024e-05/0.2888, allocations: 12 kB / 415.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.2888, allocations: 11.94 kB / 415.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006184/0.2894, allocations: 210.1 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002078/0.2915, allocations: 1.002 MB / 416.7 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005961/0.2921, allocations: 210.4 kB / 416.9 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003499/0.2925, allocations: 112.8 kB / 417 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.426e-05/0.2925, allocations: 0 / 417 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.89e-05/0.2926, allocations: 46.55 kB / 417 MB, free: 8.988 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.854e-06/0.2926, allocations: 0 / 417 MB, free: 8.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.006551/0.2992, allocations: 1.558 MB / 418.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.2992, allocations: 55.41 kB / 418.6 MB, free: 7.289 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003233/0.2996, allocations: 233 kB / 418.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.724e-05/0.2996, allocations: 37.7 kB / 418.9 MB, free: 7.012 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.2998, allocations: 184.5 kB / 419.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/0.2999, allocations: 126.9 kB / 419.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.3001, allocations: 62.08 kB / 419.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3003, allocations: 342.8 kB / 419.6 MB, free: 6.289 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003572/0.3006, allocations: 108.7 kB / 419.7 MB, free: 6.184 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003718/0.301, allocations: 157.7 kB / 419.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006633/0.3017, allocations: 287.6 kB / 420.1 MB, free: 5.719 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3017, allocations: 0 / 420.1 MB, free: 5.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002109/0.3038, allocations: 0.5335 MB / 420.7 MB, free: 5.172 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.3039, allocations: 4 kB / 420.7 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.3039, allocations: 4 kB / 420.7 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001641/0.3056, allocations: 245.4 kB / 420.9 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003853/0.306, allocations: 59.91 kB / 421 MB, free: 4.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006627/0.3126, allocations: 4.13 MB / 425.1 MB, free: 464 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003382/0.313, allocations: 15.98 kB / 425.1 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.261e-05/0.313, allocations: 8 kB / 425.1 MB, free: 440 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.0002574/0.3133, allocations: 153.7 kB / 425.3 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.3134, allocations: 23.86 kB / 425.3 MB, free: 252 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001179/0.3135, allocations: 42.95 kB / 425.3 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.107e-05/0.3136, allocations: 7.984 kB / 425.4 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.3136, allocations: 8 kB / 425.4 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.3136, allocations: 8 kB / 425.4 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002437/0.316, allocations: 0.9852 MB / 426.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.3161, allocations: 0 / 426.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002183/0.3163, allocations: 43.91 kB / 426.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/0.3175, allocations: 237.8 kB / 426.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.134e-05/0.3176, allocations: 8 kB / 426.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005251/0.3228, allocations: 4.126 MB / 430.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.3228, allocations: 0 / 430.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002473/0.3253, allocations: 0.7259 MB / 431.5 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.3255, allocations: 105 kB / 431.6 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.502e-05/0.3256, allocations: 11.94 kB / 431.6 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003419/0.3259, allocations: 16.05 kB / 431.6 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.3261, allocations: 27.95 kB / 431.6 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.998e-05/0.3261, allocations: 12 kB / 431.7 MB, free: 9.496 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002427/0.3263, allocations: 168.5 kB / 431.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3264, allocations: 0 / 431.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009127/0.3273, allocations: 104 kB / 431.9 MB, free: 9.23 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.002886/0.3302, allocations: 1.285 MB / 433.2 MB, free: 7.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001464/0.3317, allocations: 0.5597 MB / 433.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.3317, allocations: 0 / 433.8 MB, free: 7.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007926/0.3325, allocations: 437.7 kB / 434.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005078/0.333, allocations: 33.5 kB / 434.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007803/0.3408, allocations: 3.364 MB / 437.6 MB, free: 3.328 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003908/0.3413, allocations: 0.784 MB / 438.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.3414, allocations: 18.28 kB / 438.4 MB, free: 2.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001415/0.3415, allocations: 103.3 kB / 438.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3415, allocations: 4 kB / 438.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03272/0.3743, allocations: 8.487 MB / 447 MB, free: 10.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.37, allocations: 11.88 kB / 447 MB, free: 10.1 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.0.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