Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 113.9 kB / 17.07 MB, free: 5.988 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.00119/0.00119, allocations: 198.8 kB / 18.01 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 47.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2782, allocations: 49.45 MB / 400.2 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.003937/0.2821, allocations: 2.735 MB / 403 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001321/0.2835, allocations: 0.8645 MB / 403.8 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.2836, allocations: 4 kB / 403.8 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000255/0.2839, allocations: 63.44 kB / 403.9 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002688/0.2842, allocations: 107.2 kB / 404 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002405/0.2844, allocations: 87.88 kB / 404.1 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003458/0.2848, allocations: 358.6 kB / 404.4 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/0.285, allocations: 101.7 kB / 404.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001748/0.2852, allocations: 139.5 kB / 404.7 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.2854, allocations: 155.3 kB / 404.8 MB, free: 4.309 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.541e-05/0.2854, allocations: 28 kB / 404.9 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.584e-05/0.2855, allocations: 32 kB / 404.9 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.596e-05/0.2855, allocations: 67.7 kB / 405 MB, free: 4.184 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.2857, allocations: 151.3 kB / 405.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003826/0.2861, allocations: 369.4 kB / 405.5 MB, free: 3.676 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2861, allocations: 0 / 405.5 MB, free: 3.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2861, allocations: 0 / 405.5 MB, free: 3.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.271e-06/0.2861, allocations: 0 / 405.5 MB, free: 3.676 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.0009606/0.2871, allocations: 0.6078 MB / 406.1 MB, free: 3.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.2871, allocations: 11.89 kB / 406.1 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.223e-05/0.2872, allocations: 62.72 kB / 406.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.854e-05/0.2872, allocations: 36.75 kB / 406.2 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003441/0.2876, allocations: 273 kB / 406.5 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.2876, allocations: 20.94 kB / 406.5 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.138e-05/0.2877, allocations: 24.38 kB / 406.5 MB, free: 2.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004761/0.2882, allocations: 256.8 kB / 406.7 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.2882, allocations: 0 / 406.7 MB, free: 2.297 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.2882, allocations: 15.94 kB / 406.8 MB, free: 2.281 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.2882, allocations: 8 kB / 406.8 MB, free: 2.273 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004177/0.2887, allocations: 210.1 kB / 407 MB, free: 2.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001437/0.2901, allocations: 0.9939 MB / 408 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004154/0.2905, allocations: 217.3 kB / 408.2 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000245/0.2908, allocations: 108.8 kB / 408.3 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.2908, allocations: 4 kB / 408.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.2909, allocations: 30.56 kB / 408.3 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.323e-06/0.2909, allocations: 4 kB / 408.3 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.004818/0.2957, allocations: 1.544 MB / 409.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.2957, allocations: 59.27 kB / 409.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002228/0.296, allocations: 233 kB / 410.2 MB, free: 14.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.296, allocations: 29.7 kB / 410.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.2961, allocations: 184.5 kB / 410.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.486e-05/0.2962, allocations: 127 kB / 410.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.2963, allocations: 66.03 kB / 410.6 MB, free: 14.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.2965, allocations: 334.8 kB / 410.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002294/0.2967, allocations: 112.7 kB / 411 MB, free: 13.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002638/0.297, allocations: 161.4 kB / 411.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004847/0.2975, allocations: 280 kB / 411.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2975, allocations: 0 / 411.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001468/0.299, allocations: 0.5333 MB / 412 MB, free: 12.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.405e-05/0.299, allocations: 8 kB / 412 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.299, allocations: 7.938 kB / 412 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001211/0.3002, allocations: 245.4 kB / 412.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002595/0.3005, allocations: 59.95 kB / 412.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004699/0.3052, allocations: 4.142 MB / 416.4 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.3055, allocations: 8.031 kB / 416.4 MB, free: 8.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.937e-05/0.3055, allocations: 19.98 kB / 416.4 MB, free: 8.043 MB / 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.0001857/0.3057, allocations: 149.7 kB / 416.6 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.114e-05/0.3058, allocations: 31.92 kB / 416.6 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.901e-05/0.3059, allocations: 42.95 kB / 416.7 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3059, allocations: 0 / 416.7 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.3059, allocations: 4 kB / 416.7 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.3059, allocations: 0 / 416.7 MB, free: 7.809 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002003/0.3079, allocations: 0.99 MB / 417.6 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.3079, allocations: 4.062 kB / 417.7 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002036/0.3081, allocations: 39.97 kB / 417.7 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001084/0.3092, allocations: 237.4 kB / 417.9 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/0.3093, allocations: 12 kB / 417.9 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004272/0.3135, allocations: 4.123 MB / 422.1 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3136, allocations: 0 / 422.1 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001686/0.3152, allocations: 0.7406 MB / 422.8 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.694e-05/0.3153, allocations: 108.9 kB / 422.9 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.497e-05/0.3154, allocations: 4 kB / 422.9 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.3156, allocations: 15.98 kB / 422.9 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.098e-05/0.3157, allocations: 23.97 kB / 422.9 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.3157, allocations: 19.92 kB / 423 MB, free: 1.102 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001718/0.3159, allocations: 160.5 kB / 423.1 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3159, allocations: 0 / 423.1 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005768/0.3165, allocations: 108.1 kB / 423.2 MB, free: 0.8359 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.002002/0.3185, allocations: 1.274 MB / 424.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009895/0.3195, allocations: 0.5709 MB / 425.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3195, allocations: 320 / 425.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005862/0.3201, allocations: 429.1 kB / 425.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003277/0.3204, allocations: 25.73 kB / 425.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005625/0.3261, allocations: 3.348 MB / 428.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000386/0.3265, allocations: 0.776 MB / 429.6 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.444e-05/0.3266, allocations: 26.28 kB / 429.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.3267, allocations: 87.41 kB / 429.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3267, allocations: 0 / 429.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.037/0.3637, allocations: 8.406 MB / 438.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.49, allocations: 27.11 kB / 438.2 MB, free: 1.832 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches