Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001682/0.001682, allocations: 113.6 kB / 21.19 MB, free: 0.7031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002134/0.002134, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.517/1.517, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 51.94 kB / 347.2 MB, free: 10.16 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3164, allocations: 49.17 MB / 396.3 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor): time 0.00387/0.3202, allocations: 2.706 MB / 399 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.3217, allocations: 0.9136 MB / 400 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001628/0.3218, allocations: 8.531 kB / 400 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002939/0.3221, allocations: 63.03 kB / 400 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002995/0.3224, allocations: 103.8 kB / 400.1 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002838/0.3227, allocations: 101.9 kB / 400.2 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004436/0.3231, allocations: 345.6 kB / 400.6 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001933/0.3233, allocations: 82.83 kB / 400.6 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002234/0.3236, allocations: 146 kB / 400.8 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002279/0.3238, allocations: 149.6 kB / 400.9 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.685e-05/0.3238, allocations: 29.91 kB / 401 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.707e-05/0.3239, allocations: 29.16 kB / 401 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.089e-05/0.324, allocations: 64.53 kB / 401.1 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001435/0.3241, allocations: 166.9 kB / 401.2 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004851/0.3246, allocations: 356.3 kB / 401.6 MB, free: 5.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3246, allocations: 0 / 401.6 MB, free: 5.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3246, allocations: 0 / 401.6 MB, free: 5.629 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.3246, allocations: 0 / 401.6 MB, free: 5.629 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001014/0.3256, allocations: 0.5332 MB / 402.1 MB, free: 5.215 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.3257, allocations: 14.45 kB / 402.1 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.193e-05/0.3257, allocations: 61.53 kB / 402.2 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.904e-05/0.3258, allocations: 36.45 kB / 402.2 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000333/0.3261, allocations: 208.4 kB / 402.4 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.39e-05/0.3262, allocations: 20.25 kB / 402.4 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.207e-05/0.3262, allocations: 25.84 kB / 402.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005111/0.3267, allocations: 258.3 kB / 402.7 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.3268, allocations: 0 / 402.7 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.978e-05/0.3268, allocations: 10.03 kB / 402.7 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.3268, allocations: 10.95 kB / 402.7 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004774/0.3273, allocations: 210.6 kB / 402.9 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.3288, allocations: 0.9652 MB / 403.9 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000449/0.3292, allocations: 193 kB / 404.1 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002585/0.3295, allocations: 110.4 kB / 404.2 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.057e-05/0.3295, allocations: 2.312 kB / 404.2 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.3295, allocations: 32.66 kB / 404.2 MB, free: 3.867 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.704e-06/0.3295, allocations: 0 / 404.2 MB, free: 3.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.005011/0.3345, allocations: 1.397 MB / 405.6 MB, free: 3.277 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.283e-05/0.3346, allocations: 55.78 kB / 405.7 MB, free: 3.215 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002394/0.3348, allocations: 222.4 kB / 405.9 MB, free: 3.074 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.3348, allocations: 35.2 kB / 405.9 MB, free: 3.035 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.2e-05/0.3349, allocations: 188.9 kB / 406.1 MB, free: 2.875 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.601e-05/0.335, allocations: 127.3 kB / 406.2 MB, free: 2.773 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.3351, allocations: 63.14 kB / 406.3 MB, free: 2.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.933e-05/0.3352, allocations: 337.2 kB / 406.6 MB, free: 2.406 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.3354, allocations: 110.2 kB / 406.7 MB, free: 2.367 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002568/0.3357, allocations: 157.8 kB / 406.9 MB, free: 2.281 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004533/0.3361, allocations: 281.2 kB / 407.2 MB, free: 2.125 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3361, allocations: 9.312 kB / 407.2 MB, free: 2.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001474/0.3376, allocations: 0.5254 MB / 407.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.3376, allocations: 6.297 kB / 407.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.3376, allocations: 1.375 kB / 407.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001272/0.3389, allocations: 244.2 kB / 407.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002832/0.3392, allocations: 61.12 kB / 408 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004737/0.3439, allocations: 3.925 MB / 411.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002993/0.3442, allocations: 19.39 kB / 412 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.499e-05/0.3442, allocations: 9.219 kB / 412 MB, free: 14.44 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002176/0.3445, allocations: 153.9 kB / 412.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.197e-05/0.3445, allocations: 28.19 kB / 412.1 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.425e-05/0.3446, allocations: 37.73 kB / 412.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.3446, allocations: 5.031 kB / 412.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.3446, allocations: 5.406 kB / 412.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.3446, allocations: 2.969 kB / 412.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002233/0.3469, allocations: 0.9484 MB / 413.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.3469, allocations: 5.031 kB / 413.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/0.3471, allocations: 39.02 kB / 413.2 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001259/0.3484, allocations: 246.8 kB / 413.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.584e-05/0.3484, allocations: 7.984 kB / 413.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004985/0.3534, allocations: 3.928 MB / 417.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3534, allocations: 0 / 417.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001866/0.3552, allocations: 0.7209 MB / 418.1 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.752e-05/0.3553, allocations: 29.03 kB / 418.1 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.21e-05/0.3554, allocations: 10.19 kB / 418.1 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.3556, allocations: 12.86 kB / 418.1 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.504e-05/0.3557, allocations: 35.41 kB / 418.2 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.3557, allocations: 10.19 kB / 418.2 MB, free: 9.555 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001903/0.3559, allocations: 164.9 kB / 418.3 MB, free: 9.438 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3559, allocations: 0 / 418.3 MB, free: 9.438 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000699/0.3566, allocations: 98.94 kB / 418.4 MB, free: 9.426 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002351/0.3589, allocations: 1.27 MB / 419.7 MB, free: 8.414 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00127/0.3602, allocations: 0.549 MB / 420.3 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3602, allocations: 0 / 420.3 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006504/0.3609, allocations: 419.5 kB / 420.7 MB, free: 7.68 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003576/0.3612, allocations: 32.84 kB / 420.7 MB, free: 7.656 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006398/0.3676, allocations: 3.353 MB / 424 MB, free: 5.195 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004561/0.3681, allocations: 0.7793 MB / 424.8 MB, free: 4.453 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001016/0.3682, allocations: 15.92 kB / 424.8 MB, free: 4.449 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.3683, allocations: 94.41 kB / 424.9 MB, free: 4.367 MB / 334.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3683, allocations: 0 / 424.9 MB, free: 4.367 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04403/0.4124, allocations: 8.757 MB / 433.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.48/13.9, allocations: 7.953 kB / 433.7 MB, free: 12.81 MB / 350.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 1.9992e-05 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable coil.Phi in file Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.csv. Warning: Get data of variable coil.Phi from file Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.557006019000255]