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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",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.001589/0.001589, allocations: 108.5 kB / 17.06 MB, free: 6.016 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.001403/0.001403, allocations: 192 kB / 18 MB, free: 5.098 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.463/1.463, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001042/0.001042, allocations: 51.91 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2763, allocations: 49.43 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.004102/0.2805, allocations: 2.029 MB / 402.3 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.2819, allocations: 0.5571 MB / 402.8 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002243/0.2822, allocations: 8 kB / 402.8 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001101/0.2824, allocations: 23.78 kB / 402.9 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002668/0.2826, allocations: 43.62 kB / 402.9 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004756/0.2831, allocations: 98.86 kB / 403 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002939/0.2834, allocations: 191.2 kB / 403.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.2836, allocations: 49.47 kB / 403.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002596/0.2839, allocations: 75.72 kB / 403.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/0.2841, allocations: 71.73 kB / 403.4 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.847e-05/0.2841, allocations: 19.94 kB / 403.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.094e-05/0.2842, allocations: 19.94 kB / 403.4 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.792e-05/0.2842, allocations: 31.91 kB / 403.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.2843, allocations: 75.66 kB / 403.5 MB, free: 5.531 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002935/0.2846, allocations: 181 kB / 403.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.842e-06/0.2847, allocations: 0 / 403.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.2847, allocations: 0 / 403.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.337e-05/0.2847, allocations: 4 kB / 403.7 MB, free: 5.352 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.001024/0.2857, allocations: 466.9 kB / 404.2 MB, free: 4.848 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.2858, allocations: 8.031 kB / 404.2 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.88e-05/0.2859, allocations: 46.69 kB / 404.2 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.237e-05/0.2859, allocations: 20.75 kB / 404.2 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.2862, allocations: 188.1 kB / 404.4 MB, free: 4.543 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.2862, allocations: 8.375 kB / 404.4 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.608e-05/0.2863, allocations: 8.375 kB / 404.4 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003888/0.2867, allocations: 160.1 kB / 404.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.2867, allocations: 0 / 404.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.003e-05/0.2867, allocations: 8 kB / 404.6 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.2867, allocations: 7.984 kB / 404.6 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003112/0.287, allocations: 91.94 kB / 404.7 MB, free: 4.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001101/0.2882, allocations: 0.5031 MB / 405.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003336/0.2885, allocations: 102.5 kB / 405.3 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002142/0.2887, allocations: 68.83 kB / 405.4 MB, free: 3.512 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.2888, allocations: 4.141 kB / 405.4 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.636e-05/0.2888, allocations: 38.5 kB / 405.4 MB, free: 3.461 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.2888, allocations: 0 / 405.4 MB, free: 3.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005129/0.2893, allocations: 149.5 kB / 405.6 MB, free: 3.309 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.137e-05/0.2894, allocations: 114.7 kB / 405.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.2896, allocations: 151.9 kB / 405.8 MB, free: 3.012 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/0.2896, allocations: 29.7 kB / 405.8 MB, free: 2.977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.397e-05/0.2897, allocations: 115.9 kB / 406 MB, free: 2.859 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.258e-05/0.2898, allocations: 31.55 kB / 406 MB, free: 2.828 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.211e-05/0.2898, allocations: 29.7 kB / 406 MB, free: 2.793 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.29, allocations: 326.8 kB / 406.3 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/0.2901, allocations: 39.97 kB / 406.4 MB, free: 2.426 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.2903, allocations: 76.27 kB / 406.4 MB, free: 2.336 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000259/0.2906, allocations: 98.52 kB / 406.5 MB, free: 2.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2906, allocations: 0 / 406.5 MB, free: 2.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003479/0.291, allocations: 153.3 kB / 406.7 MB, free: 2.074 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.291, allocations: 4 kB / 406.7 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.291, allocations: 7.984 kB / 406.7 MB, free: 2.062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.291, allocations: 0 / 406.7 MB, free: 2.062 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006007/0.2916, allocations: 83.92 kB / 406.8 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001619/0.2933, allocations: 1.512 MB / 408.3 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001984/0.2935, allocations: 27.89 kB / 408.3 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.2935, allocations: 7.984 kB / 408.3 MB, free: 292 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.0001328/0.2936, allocations: 120.6 kB / 408.5 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.772e-05/0.2937, allocations: 19.97 kB / 408.5 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005142/0.2942, allocations: 151.1 kB / 408.6 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.2942, allocations: 7.938 kB / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.2943, allocations: 0 / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.2943, allocations: 0 / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008012/0.2951, allocations: 464 kB / 409.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.2951, allocations: 0 / 409.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.2952, allocations: 27.97 kB / 409.1 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002413/0.2955, allocations: 28.88 kB / 409.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.2955, allocations: 7.938 kB / 409.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001144/0.2967, allocations: 1.394 MB / 410.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.2967, allocations: 0 / 410.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005983/0.2973, allocations: 293.7 kB / 410.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.534e-05/0.2974, allocations: 92.97 kB / 410.9 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.228e-05/0.2974, allocations: 4 kB / 410.9 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.2976, allocations: 19.98 kB / 410.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.718e-05/0.2976, allocations: 11.98 kB / 410.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-06/0.2976, allocations: 0 / 410.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.343e-05/0.2977, allocations: 119.2 kB / 411.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2978, allocations: 0 / 411.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003018/0.2981, allocations: 39.91 kB / 411.1 MB, free: 13.25 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.0009599/0.299, allocations: 0.835 MB / 411.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007574/0.2998, allocations: 139.9 kB / 412.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.2998, allocations: 0 / 412.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003493/0.3002, allocations: 166.6 kB / 412.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/0.3005, allocations: 11.38 kB / 412.3 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003394/0.3039, allocations: 2.116 MB / 414.4 MB, free: 9.852 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.3042, allocations: 0.708 MB / 415.1 MB, free: 9.117 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.711e-05/0.3042, allocations: 8.562 kB / 415.1 MB, free: 9.109 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.649e-05/0.3043, allocations: 47.41 kB / 415.1 MB, free: 9.062 MB / 334.1 MB Notification: Performance of SimCode: time 1.623e-06/0.3043, allocations: 4 kB / 415.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02437/0.3287, allocations: 3.39 MB / 418.5 MB, free: 5.812 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.6/20.93, allocations: 26.31 kB / 418.5 MB, free: 5.789 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > 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) "" 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.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