Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001581/0.001581, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001275/0.001275, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 53.84 kB / 307.1 MB, free: 0.5742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08713/0.08838, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.004555/0.09298, allocations: 2.767 MB / 360.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001939/0.09495, allocations: 0.9462 MB / 361.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000292/0.09527, allocations: 8 kB / 361.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002873/0.09561, allocations: 59.42 kB / 361.4 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004308/0.09605, allocations: 107.2 kB / 361.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003598/0.09643, allocations: 107.8 kB / 361.6 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004404/0.09688, allocations: 358.6 kB / 361.9 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002027/0.09709, allocations: 113.6 kB / 362 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002584/0.09735, allocations: 143.5 kB / 362.2 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002748/0.09764, allocations: 151.3 kB / 362.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.502e-05/0.09771, allocations: 28 kB / 362.4 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.09783, allocations: 32 kB / 362.4 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.151e-05/0.0979, allocations: 71.7 kB / 362.5 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001772/0.09808, allocations: 159.2 kB / 362.6 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003821/0.09847, allocations: 366.9 kB / 363 MB, free: 8.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.09849, allocations: 0 / 363 MB, free: 8.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.0985, allocations: 0 / 363 MB, free: 8.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.769e-05/0.09852, allocations: 0 / 363 MB, free: 8.633 MB / 302.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.001052/0.09958, allocations: 0.612 MB / 363.6 MB, free: 7.973 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.09962, allocations: 8.031 kB / 363.6 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.456e-05/0.09969, allocations: 62.72 kB / 363.6 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.09989, allocations: 48.55 kB / 363.7 MB, free: 7.848 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003356/0.1002, allocations: 264.6 kB / 364 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.1003, allocations: 20.88 kB / 364 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.766e-05/0.1003, allocations: 28.38 kB / 364 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005067/0.1008, allocations: 253 kB / 364.2 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.1009, allocations: 0 / 364.2 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.1009, allocations: 12 kB / 364.3 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.1009, allocations: 4 kB / 364.3 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000468/0.1014, allocations: 210.1 kB / 364.5 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.1031, allocations: 1.013 MB / 365.5 MB, free: 5.926 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004393/0.1035, allocations: 202.5 kB / 365.7 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002542/0.1038, allocations: 116.5 kB / 365.8 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.445e-05/0.1038, allocations: 4.062 kB / 365.8 MB, free: 5.602 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.1039, allocations: 38.42 kB / 365.8 MB, free: 5.555 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.372e-06/0.1039, allocations: 4 kB / 365.8 MB, free: 5.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.005145/0.1091, allocations: 1.541 MB / 367.4 MB, free: 3.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.1091, allocations: 55.41 kB / 367.4 MB, free: 3.863 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002307/0.1093, allocations: 237 kB / 367.7 MB, free: 3.621 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.354e-05/0.1094, allocations: 33.7 kB / 367.7 MB, free: 3.582 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.1095, allocations: 184.1 kB / 367.9 MB, free: 3.398 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.353e-05/0.1096, allocations: 126.2 kB / 368 MB, free: 3.273 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.1097, allocations: 62.08 kB / 368.1 MB, free: 3.203 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.1098, allocations: 338.8 kB / 368.4 MB, free: 2.863 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000247/0.1101, allocations: 104.7 kB / 368.5 MB, free: 2.762 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002638/0.1104, allocations: 161.7 kB / 368.7 MB, free: 2.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005198/0.1109, allocations: 287.8 kB / 368.9 MB, free: 2.293 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1109, allocations: 4 kB / 368.9 MB, free: 2.289 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001558/0.1125, allocations: 0.5295 MB / 369.5 MB, free: 1.746 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.1125, allocations: 4 kB / 369.5 MB, free: 1.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.1125, allocations: 0 / 369.5 MB, free: 1.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00124/0.1138, allocations: 253.4 kB / 369.7 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/0.114, allocations: 51.97 kB / 369.8 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1499/0.2639, allocations: 4.13 MB / 373.9 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/0.2642, allocations: 15.53 kB / 373.9 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.472e-05/0.2643, allocations: 10.27 kB / 373.9 MB, free: 17.35 MB / 302.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.0001401/0.2644, allocations: 151.5 kB / 374.1 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.819e-05/0.2645, allocations: 30.91 kB / 374.1 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.703e-05/0.2646, allocations: 42.14 kB / 374.1 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.2646, allocations: 6.516 kB / 374.1 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.2646, allocations: 3.703 kB / 374.2 MB, free: 17.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.2646, allocations: 5.812 kB / 374.2 MB, free: 17.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002001/0.2666, allocations: 0.9842 MB / 375.1 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.2666, allocations: 3.812 kB / 375.1 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002127/0.2669, allocations: 40.73 kB / 375.2 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0012/0.2681, allocations: 247 kB / 375.4 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.153e-05/0.2681, allocations: 7.766 kB / 375.4 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003744/0.2718, allocations: 4.114 MB / 379.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.2719, allocations: 1.375 kB / 379.6 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001809/0.2737, allocations: 0.7365 MB / 380.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.192e-05/0.2737, allocations: 102.6 kB / 380.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.794e-05/0.2738, allocations: 7.484 kB / 380.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/0.274, allocations: 12.34 kB / 380.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.572e-05/0.2741, allocations: 37.12 kB / 380.4 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.078e-05/0.2741, allocations: 15.78 kB / 380.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001311/0.2743, allocations: 165.4 kB / 380.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2743, allocations: 0 / 380.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005882/0.2749, allocations: 103.9 kB / 380.7 MB, free: 12.5 MB / 302.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.00185/0.2767, allocations: 1.274 MB / 382 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009483/0.2777, allocations: 0.5746 MB / 382.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.2777, allocations: 1.344 kB / 382.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005653/0.2783, allocations: 434.6 kB / 383 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.2786, allocations: 29.25 kB / 383 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005717/0.2844, allocations: 3.375 MB / 386.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000257/0.2846, allocations: 0.7798 MB / 387.2 MB, free: 8.059 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.2848, allocations: 21.39 kB / 387.2 MB, free: 8.051 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/0.2849, allocations: 95.56 kB / 387.3 MB, free: 7.98 MB / 302.1 MB Notification: Performance of SimCode: time 8.22e-07/0.2849, allocations: 0 / 387.3 MB, free: 7.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03086/0.3158, allocations: 8.345 MB / 395.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.56, allocations: 7.906 kB / 395.6 MB, free: 5.344 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 4e-05 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches