Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_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.001362/0.001362, allocations: 105.5 kB / 17.73 MB, free: 5.367 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.001445/0.001445, allocations: 192 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.497/1.497, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08222/0.08351, allocations: 46.61 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003291/0.08684, allocations: 1.999 MB / 376.6 MB, free: 3.074 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.08827, allocations: 0.624 MB / 377.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.08844, allocations: 4 kB / 377.3 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.553e-05/0.08854, allocations: 19.78 kB / 377.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002039/0.08876, allocations: 43.62 kB / 377.3 MB, free: 2.375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005056/0.08927, allocations: 91.81 kB / 377.4 MB, free: 2.285 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003968/0.08968, allocations: 187.3 kB / 377.6 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002377/0.08992, allocations: 41.47 kB / 377.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000269/0.0902, allocations: 83.64 kB / 377.7 MB, free: 1.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001667/0.09038, allocations: 83.67 kB / 377.8 MB, free: 1.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.626e-05/0.09044, allocations: 16 kB / 377.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.078e-05/0.09047, allocations: 16 kB / 377.8 MB, free: 1.863 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.062e-05/0.09054, allocations: 39.84 kB / 377.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.09066, allocations: 71.59 kB / 377.9 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000339/0.09101, allocations: 171.7 kB / 378.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.123e-05/0.09103, allocations: 0 / 378.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.918e-06/0.09104, allocations: 0 / 378.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.09106, allocations: 0 / 378.1 MB, free: 1.586 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.001187/0.09225, allocations: 482.7 kB / 378.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.817e-05/0.09233, allocations: 12.03 kB / 378.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.679e-05/0.0924, allocations: 38.75 kB / 378.6 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.714e-05/0.0925, allocations: 16.75 kB / 378.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003058/0.09282, allocations: 204 kB / 378.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.477e-05/0.09285, allocations: 8.375 kB / 378.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.899e-05/0.09291, allocations: 12.38 kB / 378.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005083/0.09342, allocations: 156.1 kB / 379 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.09345, allocations: 4 kB / 379 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.732e-05/0.09349, allocations: 4 kB / 379 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.0935, allocations: 0 / 379 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003179/0.09384, allocations: 95.94 kB / 379.1 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1863/0.2801, allocations: 0.5054 MB / 379.6 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003321/0.2805, allocations: 103.7 kB / 379.7 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001961/0.2807, allocations: 71.72 kB / 379.8 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.175e-05/0.2807, allocations: 1.734 kB / 379.8 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.561e-05/0.2807, allocations: 36.28 kB / 379.8 MB, free: 12.74 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.884e-06/0.2807, allocations: 1.219 kB / 379.8 MB, free: 12.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005333/0.2813, allocations: 150.9 kB / 380 MB, free: 12.71 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/0.2813, allocations: 104.2 kB / 380.1 MB, free: 12.58 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.2815, allocations: 152.2 kB / 380.2 MB, free: 12.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.2815, allocations: 33.08 kB / 380.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.246e-05/0.2815, allocations: 119.2 kB / 380.4 MB, free: 12.37 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.362e-05/0.2816, allocations: 23.97 kB / 380.4 MB, free: 12.37 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.397e-05/0.2816, allocations: 28.77 kB / 380.4 MB, free: 12.35 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.458e-05/0.2817, allocations: 320.4 kB / 380.8 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.2818, allocations: 44.23 kB / 380.8 MB, free: 12.04 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.282, allocations: 75.16 kB / 380.9 MB, free: 12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002306/0.2822, allocations: 101.2 kB / 381 MB, free: 11.98 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.2822, allocations: 0 / 381 MB, free: 11.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003084/0.2826, allocations: 157.2 kB / 381.1 MB, free: 11.94 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.2826, allocations: 5.688 kB / 381.1 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.2826, allocations: 1.719 kB / 381.1 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.2826, allocations: 4.406 kB / 381.1 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006231/0.2832, allocations: 84.88 kB / 381.2 MB, free: 11.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/0.2845, allocations: 1.501 MB / 382.7 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001699/0.2847, allocations: 25.59 kB / 382.7 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.658e-05/0.2848, allocations: 10.7 kB / 382.8 MB, free: 10.48 MB / 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 9.582e-05/0.2849, allocations: 128.5 kB / 382.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.696e-05/0.2849, allocations: 8.688 kB / 382.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004687/0.2854, allocations: 160.9 kB / 383 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.207e-06/0.2854, allocations: 1.312 kB / 383 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.063e-06/0.2854, allocations: 0 / 383 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.2855, allocations: 8.781 kB / 383.1 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007142/0.2862, allocations: 463.3 kB / 383.5 MB, free: 9.996 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.2862, allocations: 5.031 kB / 383.5 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/0.2864, allocations: 26.48 kB / 383.5 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002423/0.2866, allocations: 28 kB / 383.6 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.613e-05/0.2866, allocations: 5.547 kB / 383.6 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001013/0.2877, allocations: 1.389 MB / 385 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2877, allocations: 2.172 kB / 385 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006866/0.2884, allocations: 299.5 kB / 385.3 MB, free: 8.465 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.309e-05/0.2884, allocations: 93.02 kB / 385.3 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.162e-05/0.2884, allocations: 5.812 kB / 385.3 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.2886, allocations: 17.69 kB / 385.4 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.367e-05/0.2887, allocations: 7.016 kB / 385.4 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-06/0.2887, allocations: 6.016 kB / 385.4 MB, free: 8.359 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.825e-05/0.2888, allocations: 118.5 kB / 385.5 MB, free: 8.285 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2888, allocations: 0 / 385.5 MB, free: 8.285 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002865/0.2891, allocations: 43.19 kB / 385.5 MB, free: 8.277 MB / 318.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.0007617/0.2898, allocations: 0.8286 MB / 386.4 MB, free: 7.594 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007092/0.2906, allocations: 136.5 kB / 386.5 MB, free: 7.586 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2906, allocations: 0 / 386.5 MB, free: 7.586 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003235/0.2909, allocations: 166.8 kB / 386.7 MB, free: 7.469 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/0.2912, allocations: 11.62 kB / 386.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003371/0.2945, allocations: 2.101 MB / 388.8 MB, free: 5.914 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002217/0.2948, allocations: 0.7133 MB / 389.5 MB, free: 5.215 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.299e-05/0.2949, allocations: 14.94 kB / 389.5 MB, free: 5.207 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.398e-05/0.2949, allocations: 41.89 kB / 389.5 MB, free: 5.176 MB / 318.1 MB Notification: Performance of SimCode: time 1.182e-06/0.2949, allocations: 0 / 389.5 MB, free: 5.176 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0401/0.3351, allocations: 3.404 MB / 392.9 MB, free: 4.465 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.09, allocations: 13.64 kB / 393 MB, free: 4.453 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.freqHz,SineVoltage1.i,SineVoltage1.n.i,SineVoltage1.n.v,SineVoltage1.offset,SineVoltage1.p.i,SineVoltage1.p.v,SineVoltage1.phase,SineVoltage1.signalSource.amplitude,SineVoltage1.signalSource.freqHz,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