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.001761/0.001761, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002054/0.002054, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 64.39 kB / 307.1 MB, free: 448 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09599/0.09741, allocations: 50.54 MB / 357.6 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003698/0.1011, allocations: 2.047 MB / 359.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001397/0.1026, allocations: 0.6506 MB / 360.3 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001778/0.1028, allocations: 4 kB / 360.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.614e-05/0.1029, allocations: 15.8 kB / 360.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002068/0.1031, allocations: 55.61 kB / 360.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004648/0.1036, allocations: 103.7 kB / 360.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002825/0.1039, allocations: 179.3 kB / 360.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001767/0.1041, allocations: 49.5 kB / 360.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002741/0.1044, allocations: 91.69 kB / 360.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001272/0.1045, allocations: 83.62 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.188e-05/0.1045, allocations: 12 kB / 360.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.802e-05/0.1046, allocations: 20 kB / 360.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.307e-05/0.1047, allocations: 39.83 kB / 360.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.1048, allocations: 79.59 kB / 361 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002425/0.105, allocations: 187.6 kB / 361.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1051, allocations: 0 / 361.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1051, allocations: 0 / 361.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.1051, allocations: 0 / 361.2 MB, free: 10.28 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.0008925/0.106, allocations: 482.7 kB / 361.7 MB, free: 9.762 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.106, allocations: 12.03 kB / 361.7 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.673e-05/0.1061, allocations: 34.75 kB / 361.7 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004237/0.1065, allocations: 60.7 kB / 361.8 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002713/0.1068, allocations: 216 kB / 362 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/0.1068, allocations: 8.375 kB / 362 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.305e-05/0.1069, allocations: 12.36 kB / 362 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003337/0.1072, allocations: 157.6 kB / 362.1 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.1072, allocations: 0 / 362.1 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.1072, allocations: 0 / 362.1 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.158e-06/0.1073, allocations: 8 kB / 362.2 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002862/0.1076, allocations: 95.88 kB / 362.3 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.1086, allocations: 0.5148 MB / 362.8 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000316/0.1089, allocations: 98.53 kB / 362.9 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.1091, allocations: 68.83 kB / 362.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.1092, allocations: 4 kB / 362.9 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.1092, allocations: 38.5 kB / 363 MB, free: 8.309 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.1092, allocations: 3.938 kB / 363 MB, free: 8.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004739/0.1097, allocations: 145.6 kB / 363.1 MB, free: 8.156 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.839e-05/0.1098, allocations: 110.8 kB / 363.2 MB, free: 8.023 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.1099, allocations: 163.9 kB / 363.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.1099, allocations: 25.7 kB / 363.4 MB, free: 7.824 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.291e-05/0.11, allocations: 123.9 kB / 363.5 MB, free: 7.699 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.526e-05/0.1101, allocations: 23.56 kB / 363.6 MB, free: 7.676 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.533e-05/0.1101, allocations: 29.7 kB / 363.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.1102, allocations: 322.8 kB / 363.9 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.1104, allocations: 43.97 kB / 363.9 MB, free: 7.273 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.1106, allocations: 80.2 kB / 364 MB, free: 7.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002416/0.1108, allocations: 98.52 kB / 364.1 MB, free: 7.074 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1108, allocations: 0 / 364.1 MB, free: 7.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003368/0.1112, allocations: 145.4 kB / 364.3 MB, free: 6.926 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.1112, allocations: 16.02 kB / 364.3 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.1112, allocations: 0 / 364.3 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.1112, allocations: 0 / 364.3 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005664/0.1118, allocations: 87.86 kB / 364.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001598/0.1134, allocations: 1.5 MB / 365.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/0.1136, allocations: 23.95 kB / 365.9 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.1136, allocations: 7.984 kB / 365.9 MB, free: 5.148 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 0.0001428/0.1138, allocations: 125.8 kB / 366 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.322e-05/0.1138, allocations: 7.906 kB / 366 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004626/0.1143, allocations: 163.1 kB / 366.2 MB, free: 4.836 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1143, allocations: 3.938 kB / 366.2 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.1143, allocations: 3.938 kB / 366.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1143, allocations: 0 / 366.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007865/0.1151, allocations: 468 kB / 366.6 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.1151, allocations: 0 / 366.6 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000136/0.1153, allocations: 31.91 kB / 366.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000196/0.1155, allocations: 32.88 kB / 366.7 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.1155, allocations: 3.984 kB / 366.7 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.1166, allocations: 1.391 MB / 368.1 MB, free: 2.711 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1166, allocations: 4.578 kB / 368.1 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000556/0.1172, allocations: 297.1 kB / 368.4 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.334e-05/0.1172, allocations: 85.08 kB / 368.5 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.472e-05/0.1172, allocations: 7.938 kB / 368.5 MB, free: 2.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.1174, allocations: 11.98 kB / 368.5 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.134e-05/0.1175, allocations: 11.98 kB / 368.5 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.745e-06/0.1175, allocations: 4 kB / 368.5 MB, free: 2.258 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.697e-05/0.1176, allocations: 119.2 kB / 368.6 MB, free: 2.141 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1176, allocations: 3.938 kB / 368.6 MB, free: 2.137 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002929/0.1179, allocations: 47.84 kB / 368.7 MB, free: 2.09 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.0008489/0.1187, allocations: 0.8345 MB / 369.5 MB, free: 1.227 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006705/0.1194, allocations: 140 kB / 369.7 MB, free: 1.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1194, allocations: 0 / 369.7 MB, free: 1.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002837/0.1197, allocations: 158.7 kB / 369.8 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002426/0.12, allocations: 14.67 kB / 369.8 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1509/0.2709, allocations: 2.097 MB / 371.9 MB, free: 18.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001721/0.2711, allocations: 0.714 MB / 372.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.733e-05/0.2712, allocations: 13.91 kB / 372.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.345e-05/0.2713, allocations: 41.83 kB / 372.7 MB, free: 18.08 MB / 302.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2713, allocations: 0 / 372.7 MB, free: 18.08 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.2987, allocations: 3.288 MB / 376 MB, free: 17.72 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.11, allocations: 1.375 kB / 376 MB, free: 17.72 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 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.mat","/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