Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001117/0.001117, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001201/0.001202, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 59.89 kB / 307 MB, free: 492 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0909/0.09211, allocations: 50.54 MB / 357.6 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003157/0.09531, allocations: 2.049 MB / 359.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.0965, allocations: 0.6622 MB / 360.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.09664, allocations: 0 / 360.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.703e-05/0.09672, allocations: 19.8 kB / 360.3 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.09686, allocations: 43.62 kB / 360.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003894/0.09726, allocations: 107.7 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002046/0.09747, allocations: 179.3 kB / 360.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.09762, allocations: 57.5 kB / 360.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002055/0.09784, allocations: 83.69 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001089/0.09796, allocations: 79.62 kB / 360.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.252e-05/0.098, allocations: 16 kB / 360.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.378e-05/0.09808, allocations: 24 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.211e-05/0.09811, allocations: 31.91 kB / 360.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.195e-05/0.0982, allocations: 87.52 kB / 361 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002052/0.09841, allocations: 179.6 kB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.09843, allocations: 4 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.09843, allocations: 0 / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.09845, allocations: 0 / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0007328/0.09918, allocations: 482.8 kB / 361.7 MB, free: 9.793 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.09923, allocations: 12.03 kB / 361.7 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.378e-05/0.09928, allocations: 42.75 kB / 361.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004228/0.09971, allocations: 52.7 kB / 361.8 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.09994, allocations: 212 kB / 362 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.09996, allocations: 12.31 kB / 362 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.955e-05/0.1, allocations: 12.36 kB / 362 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003025/0.1003, allocations: 152.2 kB / 362.1 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.1003, allocations: 0 / 362.1 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.913e-05/0.1004, allocations: 8 kB / 362.2 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.1004, allocations: 0 / 362.2 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002879/0.1007, allocations: 98.98 kB / 362.2 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008609/0.1015, allocations: 0.5109 MB / 362.8 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003127/0.1019, allocations: 106.5 kB / 362.9 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001968/0.1021, allocations: 68.83 kB / 362.9 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.1021, allocations: 4 kB / 362.9 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/0.1021, allocations: 34.5 kB / 363 MB, free: 8.344 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.1021, allocations: 0 / 363 MB, free: 8.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004775/0.1026, allocations: 153.8 kB / 363.1 MB, free: 8.188 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.1027, allocations: 102.8 kB / 363.2 MB, free: 8.062 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/0.1028, allocations: 163.9 kB / 363.4 MB, free: 7.895 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.1028, allocations: 25.7 kB / 363.4 MB, free: 7.863 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.933e-05/0.1029, allocations: 119.9 kB / 363.5 MB, free: 7.742 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.584e-05/0.103, allocations: 31.5 kB / 363.6 MB, free: 7.711 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.764e-05/0.103, allocations: 33.7 kB / 363.6 MB, free: 7.672 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.52e-05/0.1031, allocations: 322.8 kB / 363.9 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/0.1033, allocations: 39.97 kB / 363.9 MB, free: 7.309 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001579/0.1034, allocations: 72.27 kB / 364 MB, free: 7.223 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002843/0.1037, allocations: 106.6 kB / 364.1 MB, free: 7.109 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1037, allocations: 0 / 364.1 MB, free: 7.109 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003448/0.1041, allocations: 153.4 kB / 364.3 MB, free: 6.953 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.1041, allocations: 11.11 kB / 364.3 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.1041, allocations: 0 / 364.3 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.1041, allocations: 4 kB / 364.3 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000588/0.1047, allocations: 75.92 kB / 364.4 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001322/0.1061, allocations: 1.516 MB / 365.9 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001734/0.1063, allocations: 19.95 kB / 365.9 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.1063, allocations: 3.984 kB / 365.9 MB, free: 5.184 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.866e-05/0.1064, allocations: 133.8 kB / 366 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4e-05/0.1064, allocations: 7.906 kB / 366 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004643/0.1069, allocations: 163 kB / 366.2 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.1069, allocations: 3.938 kB / 366.2 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.1069, allocations: 8 kB / 366.2 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1069, allocations: 0 / 366.2 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007277/0.1077, allocations: 460 kB / 366.6 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.1077, allocations: 4.031 kB / 366.7 MB, free: 4.336 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/0.1078, allocations: 27.97 kB / 366.7 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001988/0.108, allocations: 24.84 kB / 366.7 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.1081, allocations: 3.984 kB / 366.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001005/0.1091, allocations: 1.398 MB / 368.1 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1091, allocations: 0 / 368.1 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005852/0.1097, allocations: 289.1 kB / 368.4 MB, free: 2.438 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.485e-05/0.1097, allocations: 88.98 kB / 368.5 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.818e-05/0.1098, allocations: 7.938 kB / 368.5 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001747/0.1099, allocations: 19.98 kB / 368.5 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.185e-05/0.11, allocations: 7.984 kB / 368.5 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.11, allocations: 8.062 kB / 368.5 MB, free: 2.289 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.504e-05/0.1101, allocations: 119.2 kB / 368.6 MB, free: 2.172 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1101, allocations: 0 / 368.6 MB, free: 2.172 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003039/0.1104, allocations: 39.84 kB / 368.7 MB, free: 2.133 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008217/0.1112, allocations: 0.8424 MB / 369.5 MB, free: 1.262 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007093/0.112, allocations: 140 kB / 369.7 MB, free: 1.125 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.112, allocations: 0 / 369.7 MB, free: 1.125 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003058/0.1123, allocations: 170.7 kB / 369.8 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002531/0.1126, allocations: 8 kB / 369.8 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1659/0.2785, allocations: 2.095 MB / 371.9 MB, free: 18.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001447/0.2787, allocations: 0.7107 MB / 372.6 MB, free: 18.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.497e-05/0.2787, allocations: 12.86 kB / 372.6 MB, free: 18.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.86e-05/0.2788, allocations: 41.92 kB / 372.7 MB, free: 18.14 MB / 302.1 MB Notification: Performance of SimCode: time 2.084e-06/0.2788, allocations: 0 / 372.7 MB, free: 18.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02409/0.3029, allocations: 3.292 MB / 376 MB, free: 17.78 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.41, allocations: 1.688 kB / 376 MB, free: 17.78 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.csv --start-time 0 --stop-time 6.2832 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0100051 Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches