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.00146/0.00146, allocations: 110.5 kB / 17.73 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.001517/0.001517, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.634/1.634, 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.001824/0.001824, allocations: 55.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1219, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.004791/0.1268, allocations: 2.003 MB / 376.7 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001407/0.1283, allocations: 0.6201 MB / 377.3 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.638e-05/0.1284, allocations: 0 / 377.3 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.578e-05/0.1285, allocations: 19.8 kB / 377.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000167/0.1286, allocations: 47.56 kB / 377.3 MB, free: 2.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004758/0.1291, allocations: 91.81 kB / 377.4 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002848/0.1294, allocations: 179.3 kB / 377.6 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000188/0.1296, allocations: 53.45 kB / 377.7 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002132/0.1299, allocations: 83.69 kB / 377.7 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001468/0.13, allocations: 87.62 kB / 377.8 MB, free: 1.883 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.249e-05/0.1301, allocations: 12 kB / 377.8 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.691e-05/0.1301, allocations: 16 kB / 377.8 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.134e-05/0.1302, allocations: 31.91 kB / 377.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001702/0.1303, allocations: 83.58 kB / 378 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002605/0.1306, allocations: 159.4 kB / 378.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.746e-06/0.1306, allocations: 3.938 kB / 378.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1306, allocations: 3.938 kB / 378.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.1306, allocations: 0 / 378.1 MB, free: 1.578 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.001079/0.1317, allocations: 486.5 kB / 378.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/0.1318, allocations: 8.031 kB / 378.6 MB, free: 1.047 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.789e-05/0.1319, allocations: 46.73 kB / 378.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.796e-05/0.1319, allocations: 16.84 kB / 378.7 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002685/0.1322, allocations: 200.1 kB / 378.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.1322, allocations: 8.375 kB / 378.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.74e-05/0.1323, allocations: 12.38 kB / 378.9 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004575/0.1328, allocations: 152.1 kB / 379 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.1328, allocations: 3.984 kB / 379 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.1328, allocations: 4 kB / 379 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.1328, allocations: 4 kB / 379 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003083/0.1331, allocations: 95.94 kB / 379.1 MB, free: 464 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2022/0.3353, allocations: 0.5019 MB / 379.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003987/0.3358, allocations: 106.1 kB / 379.7 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002205/0.336, allocations: 68.52 kB / 379.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.336, allocations: 3.891 kB / 379.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.3361, allocations: 38.38 kB / 379.9 MB, free: 12.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 2.785e-06/0.3361, allocations: 0 / 379.9 MB, free: 12.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005378/0.3366, allocations: 143.8 kB / 380 MB, free: 12.7 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.472e-05/0.3367, allocations: 106.7 kB / 380.1 MB, free: 12.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.3368, allocations: 158.7 kB / 380.3 MB, free: 12.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.3369, allocations: 27.58 kB / 380.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.914e-05/0.3369, allocations: 118.2 kB / 380.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.894e-05/0.337, allocations: 36.06 kB / 380.4 MB, free: 12.35 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.054e-05/0.337, allocations: 29.67 kB / 380.5 MB, free: 12.34 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.064e-05/0.3371, allocations: 320.2 kB / 380.8 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.3372, allocations: 43.3 kB / 380.8 MB, free: 12.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.3374, allocations: 74.78 kB / 380.9 MB, free: 11.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002444/0.3377, allocations: 103 kB / 381 MB, free: 11.96 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3377, allocations: 0 / 381 MB, free: 11.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003314/0.338, allocations: 148.8 kB / 381.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.3381, allocations: 5.5 kB / 381.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.3381, allocations: 1.375 kB / 381.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.3381, allocations: 5.125 kB / 381.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006183/0.3387, allocations: 88.53 kB / 381.2 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001217/0.34, allocations: 1.505 MB / 382.7 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/0.3401, allocations: 25 kB / 382.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.3402, allocations: 4.5 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 0.0001531/0.3403, allocations: 131.2 kB / 382.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.504e-05/0.3404, allocations: 13.41 kB / 382.9 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004741/0.3408, allocations: 153.6 kB / 383.1 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3409, allocations: 5.219 kB / 383.1 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.3409, allocations: 4.266 kB / 383.1 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.3409, allocations: 5.828 kB / 383.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008592/0.3417, allocations: 459.3 kB / 383.5 MB, free: 9.996 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.3418, allocations: 4.75 kB / 383.5 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000165/0.3419, allocations: 29.62 kB / 383.6 MB, free: 9.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000259/0.3422, allocations: 29.03 kB / 383.6 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.3422, allocations: 2.188 kB / 383.6 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00108/0.3433, allocations: 1.397 MB / 385 MB, free: 8.625 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.3433, allocations: 0.7031 kB / 385 MB, free: 8.625 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007737/0.3441, allocations: 303.5 kB / 385.3 MB, free: 8.461 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.754e-05/0.3442, allocations: 89.7 kB / 385.4 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/0.3442, allocations: 1.75 kB / 385.4 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.3444, allocations: 17.62 kB / 385.4 MB, free: 8.355 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.704e-05/0.3445, allocations: 10.38 kB / 385.4 MB, free: 8.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.3445, allocations: 2.5 kB / 385.4 MB, free: 8.355 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001172/0.3446, allocations: 117.7 kB / 385.5 MB, free: 8.281 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3446, allocations: 1.375 kB / 385.5 MB, free: 8.281 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003578/0.345, allocations: 44.55 kB / 385.6 MB, free: 8.273 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.0009239/0.3459, allocations: 0.8264 MB / 386.4 MB, free: 7.59 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008359/0.3468, allocations: 139.2 kB / 386.5 MB, free: 7.578 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3468, allocations: 0 / 386.5 MB, free: 7.578 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003793/0.3472, allocations: 166.9 kB / 386.7 MB, free: 7.453 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002607/0.3474, allocations: 12 kB / 386.7 MB, free: 7.445 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00319/0.3506, allocations: 2.099 MB / 388.8 MB, free: 5.902 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001731/0.3508, allocations: 0.7164 MB / 389.5 MB, free: 5.199 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.428e-05/0.3509, allocations: 14.75 kB / 389.5 MB, free: 5.191 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.472e-05/0.351, allocations: 37.86 kB / 389.6 MB, free: 5.164 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.351, allocations: 0 / 389.6 MB, free: 5.164 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03305/0.384, allocations: 3.341 MB / 392.9 MB, free: 4.469 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.45, allocations: 13.14 kB / 392.9 MB, free: 4.457 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.csv --start-time 0 --stop-time 6.2832 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0100051 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.csv","/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) Reference file matches