Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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: translateModel(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1256,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") translateModel(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1256,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001362/0.001363, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.001451/0.001451, allocations: 191 kB / 18.67 MB, free: 4.434 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.343/1.343, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 51.91 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.3001, allocations: 49.44 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003197/0.3033, allocations: 2.032 MB / 403.4 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009703/0.3043, allocations: 0.5727 MB / 404 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.999e-05/0.3044, allocations: 0 / 404 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.552e-05/0.3045, allocations: 23.8 kB / 404 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001332/0.3047, allocations: 39.62 kB / 404.1 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003354/0.305, allocations: 90.56 kB / 404.2 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002117/0.3052, allocations: 191.2 kB / 404.4 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001509/0.3054, allocations: 41.48 kB / 404.4 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001784/0.3056, allocations: 87.62 kB / 404.5 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001152/0.3057, allocations: 75.69 kB / 404.6 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.216e-05/0.3057, allocations: 16 kB / 404.6 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.901e-05/0.3058, allocations: 12 kB / 404.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.733e-05/0.3058, allocations: 39.83 kB / 404.6 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.225e-05/0.3059, allocations: 79.59 kB / 404.7 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001911/0.3061, allocations: 172.5 kB / 404.9 MB, free: 5.398 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3061, allocations: 0 / 404.9 MB, free: 5.398 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3061, allocations: 4 kB / 404.9 MB, free: 5.395 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.3061, allocations: 0 / 404.9 MB, free: 5.395 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0008061/0.3069, allocations: 466.9 kB / 405.3 MB, free: 4.891 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.307, allocations: 11.89 kB / 405.3 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.274e-05/0.3071, allocations: 20.75 kB / 405.4 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/0.3072, allocations: 204 kB / 405.6 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.3073, allocations: 8.375 kB / 405.6 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.448e-05/0.3073, allocations: 8.375 kB / 405.6 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000314/0.3076, allocations: 152.4 kB / 405.7 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.3076, allocations: 0 / 405.7 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.3077, allocations: 12 kB / 405.7 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.3077, allocations: 0 / 405.7 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002548/0.3079, allocations: 95.88 kB / 405.8 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009216/0.3089, allocations: 0.507 MB / 406.3 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002862/0.3092, allocations: 102.5 kB / 406.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001861/0.3094, allocations: 68.83 kB / 406.5 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.3094, allocations: 0 / 406.5 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/0.3094, allocations: 38.44 kB / 406.5 MB, free: 3.547 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 8.42e-07/0.3094, allocations: 0 / 406.5 MB, free: 3.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004517/0.3099, allocations: 149.7 kB / 406.7 MB, free: 3.395 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.623e-05/0.31, allocations: 106.8 kB / 406.8 MB, free: 3.266 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001314/0.3101, allocations: 159.9 kB / 406.9 MB, free: 3.098 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/0.3101, allocations: 25.7 kB / 407 MB, free: 3.066 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.08e-05/0.3102, allocations: 115.9 kB / 407.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.713e-05/0.3102, allocations: 31.55 kB / 407.1 MB, free: 2.918 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.265e-05/0.3103, allocations: 29.7 kB / 407.1 MB, free: 2.883 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.3104, allocations: 326.8 kB / 407.5 MB, free: 2.555 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.3106, allocations: 39.97 kB / 407.5 MB, free: 2.516 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.3107, allocations: 76.2 kB / 407.6 MB, free: 2.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002385/0.311, allocations: 98.58 kB / 407.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.311, allocations: 0 / 407.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003123/0.3113, allocations: 145.5 kB / 407.8 MB, free: 2.172 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.3113, allocations: 11.92 kB / 407.8 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3113, allocations: 0 / 407.8 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.3113, allocations: 4 kB / 407.8 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000591/0.3119, allocations: 79.86 kB / 407.9 MB, free: 2.078 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/0.3134, allocations: 1.516 MB / 409.4 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001674/0.3136, allocations: 15.92 kB / 409.4 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.3136, allocations: 11.92 kB / 409.5 MB, free: 396 kB / 318.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.0001035/0.3137, allocations: 128.6 kB / 409.6 MB, free: 260 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.678e-05/0.3138, allocations: 7.906 kB / 409.6 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004505/0.3142, allocations: 167.1 kB / 409.8 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.3142, allocations: 0 / 409.8 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.3142, allocations: 3.938 kB / 409.8 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3142, allocations: 0 / 409.8 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007175/0.315, allocations: 472 kB / 410.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.315, allocations: 0 / 410.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001496/0.3151, allocations: 27.91 kB / 410.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000217/0.3154, allocations: 32.88 kB / 410.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.3154, allocations: 3.938 kB / 410.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.3165, allocations: 1.391 MB / 411.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3165, allocations: 3.938 kB / 411.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005816/0.3171, allocations: 285.2 kB / 412 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.651e-05/0.3172, allocations: 92.97 kB / 412 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.744e-05/0.3172, allocations: 7.938 kB / 412 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.3174, allocations: 20.05 kB / 412.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.5e-05/0.3174, allocations: 11.92 kB / 412.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.235e-06/0.3174, allocations: 4 kB / 412.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.464e-05/0.3175, allocations: 119.2 kB / 412.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3175, allocations: 0 / 412.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002831/0.3178, allocations: 39.91 kB / 412.2 MB, free: 13.34 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.0001481/0.318, allocations: 111.2 kB / 412.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006808/0.3187, allocations: 131.8 kB / 412.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3187, allocations: 64 / 412.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003116/0.319, allocations: 170.7 kB / 412.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002435/0.3193, allocations: 8 kB / 412.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001502/0.3208, allocations: 0.5609 MB / 413.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.3211, allocations: 0.7119 MB / 413.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.686e-05/0.3211, allocations: 15.42 kB / 413.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3211, allocations: 0 / 413.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of Templates: time 0.004002/0.3251, allocations: 2.221 MB / 416.2 MB, free: 9.332 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches