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.001599/0.0016, allocations: 102.5 kB / 17.73 MB, free: 5.371 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.00193/0.001931, allocations: 191 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.463/1.463, 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.001387/0.001387, allocations: 51.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09524/0.09664, allocations: 46.61 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.00328/0.09996, allocations: 2.003 MB / 376.6 MB, free: 3.062 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.1011, allocations: 0.6162 MB / 377.3 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.1013, allocations: 0 / 377.3 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.526e-05/0.1013, allocations: 23.78 kB / 377.3 MB, free: 2.414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001645/0.1015, allocations: 43.62 kB / 377.3 MB, free: 2.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003622/0.1019, allocations: 91.81 kB / 377.4 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002329/0.1021, allocations: 183.2 kB / 377.6 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.1023, allocations: 57.44 kB / 377.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001905/0.1025, allocations: 75.72 kB / 377.7 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/0.1026, allocations: 79.67 kB / 377.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.299e-05/0.1027, allocations: 12 kB / 377.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.82e-05/0.1027, allocations: 16 kB / 377.8 MB, free: 1.863 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.065e-05/0.1027, allocations: 35.84 kB / 377.9 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.817e-05/0.1028, allocations: 79.59 kB / 377.9 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002093/0.103, allocations: 175.6 kB / 378.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.1031, allocations: 0 / 378.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1031, allocations: 4 kB / 378.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.1031, allocations: 0 / 378.1 MB, free: 1.574 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.0008807/0.104, allocations: 474.7 kB / 378.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.104, allocations: 8.031 kB / 378.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.539e-05/0.1041, allocations: 46.73 kB / 378.6 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.114e-05/0.1041, allocations: 20.69 kB / 378.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/0.1043, allocations: 196.1 kB / 378.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.1043, allocations: 8.375 kB / 378.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.417e-05/0.1044, allocations: 12.38 kB / 378.9 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003245/0.1047, allocations: 156.1 kB / 379 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.1047, allocations: 4 kB / 379 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/0.1047, allocations: 4 kB / 379 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.1047, allocations: 3.938 kB / 379 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002649/0.105, allocations: 91.94 kB / 379.1 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.209/0.3141, allocations: 0.5087 MB / 379.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003292/0.3144, allocations: 101.6 kB / 379.7 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001986/0.3146, allocations: 68.16 kB / 379.8 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.3147, allocations: 3.562 kB / 379.8 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.856e-05/0.3147, allocations: 44.89 kB / 379.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 2.585e-06/0.3147, allocations: 0 / 379.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004693/0.3152, allocations: 140 kB / 380 MB, free: 12.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/0.3152, allocations: 107.9 kB / 380.1 MB, free: 12.54 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.3154, allocations: 153.3 kB / 380.2 MB, free: 12.44 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.3155, allocations: 26.98 kB / 380.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.024e-05/0.3155, allocations: 121.7 kB / 380.4 MB, free: 12.33 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.669e-05/0.3156, allocations: 23.52 kB / 380.4 MB, free: 12.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.747e-05/0.3156, allocations: 29.91 kB / 380.4 MB, free: 12.31 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.689e-05/0.3157, allocations: 324.3 kB / 380.8 MB, free: 12 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.3158, allocations: 42.34 kB / 380.8 MB, free: 12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.316, allocations: 82.06 kB / 380.9 MB, free: 11.96 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002283/0.3162, allocations: 95.67 kB / 381 MB, free: 11.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.3162, allocations: 2.719 kB / 381 MB, free: 11.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003345/0.3166, allocations: 154.5 kB / 381.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.3166, allocations: 5.281 kB / 381.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.3166, allocations: 1.672 kB / 381.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.3167, allocations: 1.156 kB / 381.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006036/0.3173, allocations: 85.02 kB / 381.2 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00125/0.3185, allocations: 1.505 MB / 382.7 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001893/0.3187, allocations: 27.42 kB / 382.7 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.3187, allocations: 4.281 kB / 382.7 MB, free: 10.45 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.677e-05/0.3189, allocations: 133.5 kB / 382.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.097e-05/0.3189, allocations: 10.34 kB / 382.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004702/0.3194, allocations: 153.5 kB / 383 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.3194, allocations: 4.094 kB / 383 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.3194, allocations: 1.375 kB / 383 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.755e-05/0.3194, allocations: 8.062 kB / 383.1 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007459/0.3202, allocations: 467.7 kB / 383.5 MB, free: 9.953 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.3202, allocations: 5.234 kB / 383.5 MB, free: 9.949 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.3204, allocations: 22.25 kB / 383.5 MB, free: 9.949 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002767/0.3206, allocations: 28.7 kB / 383.6 MB, free: 9.941 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.3207, allocations: 2.031 kB / 383.6 MB, free: 9.941 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000883/0.3216, allocations: 1.391 MB / 385 MB, free: 8.586 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3216, allocations: 2.125 kB / 385 MB, free: 8.586 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006107/0.3222, allocations: 299.6 kB / 385.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.363e-05/0.3222, allocations: 88.27 kB / 385.3 MB, free: 8.324 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.482e-05/0.3223, allocations: 5.781 kB / 385.3 MB, free: 8.324 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.3224, allocations: 17.84 kB / 385.4 MB, free: 8.32 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.246e-05/0.3225, allocations: 10.53 kB / 385.4 MB, free: 8.316 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.3225, allocations: 3.156 kB / 385.4 MB, free: 8.316 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.186e-05/0.3226, allocations: 121.9 kB / 385.5 MB, free: 8.242 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3226, allocations: 0.5 kB / 385.5 MB, free: 8.242 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003168/0.3229, allocations: 38.81 kB / 385.5 MB, free: 8.238 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.0008008/0.3237, allocations: 0.8297 MB / 386.4 MB, free: 7.555 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000718/0.3245, allocations: 137.7 kB / 386.5 MB, free: 7.547 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3245, allocations: 0 / 386.5 MB, free: 7.547 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003173/0.3248, allocations: 176.8 kB / 386.7 MB, free: 7.418 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.3251, allocations: 8.469 kB / 386.7 MB, free: 7.414 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00334/0.3284, allocations: 2.099 MB / 388.8 MB, free: 5.871 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001987/0.3287, allocations: 0.717 MB / 389.5 MB, free: 5.168 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.861e-05/0.3287, allocations: 11.27 kB / 389.5 MB, free: 5.164 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.293e-05/0.3288, allocations: 41.91 kB / 389.5 MB, free: 5.133 MB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3288, allocations: 0 / 389.5 MB, free: 5.133 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02768/0.3565, allocations: 3.397 MB / 392.9 MB, free: 4.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.56/12.92, allocations: 16.98 kB / 393 MB, free: 4.414 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