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.001615/0.001615, allocations: 117.7 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001935/0.001935, allocations: 203.8 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2808, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003459/0.2843, allocations: 2.056 MB / 410.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.2857, allocations: 0.6545 MB / 411.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.2859, allocations: 0 / 411.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.892e-05/0.286, allocations: 23.78 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002063/0.2862, allocations: 43.62 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004043/0.2866, allocations: 103.2 kB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003291/0.2869, allocations: 179.3 kB / 411.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.2871, allocations: 57.52 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002291/0.2873, allocations: 83.7 kB / 412 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001335/0.2875, allocations: 79.61 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.089e-05/0.2875, allocations: 16 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.87e-05/0.2876, allocations: 27.98 kB / 412.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.416e-05/0.2876, allocations: 27.92 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.875e-05/0.2877, allocations: 83.53 kB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002453/0.288, allocations: 185 kB / 412.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.288, allocations: 0 / 412.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.288, allocations: 4 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.288, allocations: 0 / 412.4 MB, free: 13.91 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0008388/0.2889, allocations: 478.7 kB / 412.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.2889, allocations: 12.03 kB / 412.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.486e-05/0.289, allocations: 50.73 kB / 412.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004184/0.2895, allocations: 48.81 kB / 412.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000414/0.2899, allocations: 220 kB / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.2899, allocations: 8.375 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.845e-05/0.2899, allocations: 8.375 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003693/0.2903, allocations: 159.2 kB / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.2903, allocations: 0 / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.2904, allocations: 4 kB / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.2904, allocations: 4 kB / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002739/0.2906, allocations: 99.88 kB / 413.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.2917, allocations: 0.5031 MB / 413.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003001/0.292, allocations: 106.5 kB / 414 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002191/0.2922, allocations: 60.83 kB / 414.1 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.2923, allocations: 8 kB / 414.1 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.791e-05/0.2923, allocations: 38.5 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.472e-06/0.2923, allocations: 0 / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004842/0.2928, allocations: 149.5 kB / 414.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.935e-05/0.2929, allocations: 102.8 kB / 414.4 MB, free: 11.67 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.293, allocations: 166.2 kB / 414.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.2931, allocations: 25.7 kB / 414.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.822e-05/0.2931, allocations: 131.8 kB / 414.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.5e-05/0.2932, allocations: 23.7 kB / 414.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-05/0.2932, allocations: 29.7 kB / 414.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.2934, allocations: 322.8 kB / 415.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.2935, allocations: 39.97 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.2937, allocations: 76.27 kB / 415.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/0.2941, allocations: 106.5 kB / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2941, allocations: 0 / 415.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003489/0.2944, allocations: 149.3 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.2945, allocations: 4 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.2945, allocations: 0 / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.2945, allocations: 8.016 kB / 415.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005806/0.2951, allocations: 83.86 kB / 415.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/0.2966, allocations: 1.5 MB / 417 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001832/0.2968, allocations: 23.95 kB / 417.1 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.2968, allocations: 7.984 kB / 417.1 MB, free: 8.781 MB / 334.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.0001229/0.2969, allocations: 125.8 kB / 417.2 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.914e-05/0.297, allocations: 7.906 kB / 417.2 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000463/0.2975, allocations: 159.1 kB / 417.4 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.2975, allocations: 7.922 kB / 417.4 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2975, allocations: 7.938 kB / 417.4 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.2975, allocations: 4 kB / 417.4 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008488/0.2983, allocations: 460.1 kB / 417.8 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2984, allocations: 0 / 417.8 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.2985, allocations: 23.97 kB / 417.8 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002175/0.2987, allocations: 28.84 kB / 417.9 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.2988, allocations: 0 / 417.9 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001435/0.3002, allocations: 1.414 MB / 419.3 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.3002, allocations: 0 / 419.3 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006701/0.3009, allocations: 293.5 kB / 419.6 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.469e-05/0.301, allocations: 89.03 kB / 419.7 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.89e-05/0.301, allocations: 7.938 kB / 419.7 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.3012, allocations: 15.98 kB / 419.7 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.2e-05/0.3012, allocations: 8.047 kB / 419.7 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.3012, allocations: 8 kB / 419.7 MB, free: 5.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001059/0.3014, allocations: 120.1 kB / 419.8 MB, free: 5.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3014, allocations: 3.938 kB / 419.8 MB, free: 5.766 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003055/0.3017, allocations: 35.91 kB / 419.9 MB, free: 5.73 MB / 334.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.0009729/0.3027, allocations: 0.8385 MB / 420.7 MB, free: 4.863 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006922/0.3034, allocations: 132 kB / 420.8 MB, free: 4.734 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3034, allocations: 0 / 420.8 MB, free: 4.734 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000313/0.3037, allocations: 166.7 kB / 421 MB, free: 4.559 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002577/0.304, allocations: 11.94 kB / 421 MB, free: 4.547 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0035/0.3075, allocations: 2.106 MB / 423.1 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004557/0.308, allocations: 0.7158 MB / 423.8 MB, free: 1.602 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.459e-05/0.308, allocations: 12.55 kB / 423.8 MB, free: 1.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/0.3082, allocations: 39.42 kB / 423.9 MB, free: 1.551 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3082, allocations: 0 / 423.9 MB, free: 1.551 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02457/0.3328, allocations: 3.43 MB / 427.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.61, allocations: 7.484 kB / 427.3 MB, free: 14.26 MB / 350.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) "" Variables in the reference:time,Inductance1.i,SaturatingInductance1.Psi Variables in the result:Ground1.p.i,Ground1.p.v,Inductance1.L,Inductance1.i,Inductance1.n.i,Inductance1.n.v,Inductance1.p.i,Inductance1.p.v,Inductance1.v,Inom,Linf,Lnom,Lzer,SaturatingInductance1.Inom,SaturatingInductance1.Lact,SaturatingInductance1.Linf,SaturatingInductance1.Lnom,SaturatingInductance1.Lzer,SaturatingInductance1.Psi,SaturatingInductance1.i,SaturatingInductance1.n.i,SaturatingInductance1.n.v,SaturatingInductance1.p.i,SaturatingInductance1.p.v,SaturatingInductance1.v,SineVoltage1.V,SineVoltage1.f,SineVoltage1.i,SineVoltage1.n.i,SineVoltage1.n.v,SineVoltage1.offset,SineVoltage1.p.i,SineVoltage1.p.v,SineVoltage1.phase,SineVoltage1.signalSource.amplitude,SineVoltage1.signalSource.continuous,SineVoltage1.signalSource.f,SineVoltage1.signalSource.offset,SineVoltage1.signalSource.phase,SineVoltage1.signalSource.startTime,SineVoltage1.signalSource.y,SineVoltage1.startTime,SineVoltage1.v,U,der(Inductance1.i),der(SaturatingInductance1.Psi),f,phase,time