Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.902/1.902, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003491/0.0003494, allocations: 12 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09301/0.09339, allocations: 44.51 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4001/0.4935, allocations: 85.3 MB / 393.8 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002852/0.4938, allocations: 83.39 kB / 393.9 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06548/0.5593, allocations: 15.53 MB / 409.5 MB, free: 11.12 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5594, allocations: 3.938 kB / 409.5 MB, free: 11.12 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.837e-05/0.5594, allocations: 19.53 kB / 409.5 MB, free: 11.12 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002782/0.5622, allocations: 0.9678 MB / 410.5 MB, free: 10.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.5623, allocations: 11.62 kB / 410.5 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001538/0.5624, allocations: 93.2 kB / 410.6 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001771/0.5626, allocations: 85.45 kB / 410.6 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008766/0.5635, allocations: 497.9 kB / 411.1 MB, free: 10.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.087e-05/0.5636, allocations: 75.56 kB / 411.2 MB, free: 9.984 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002899/0.5639, allocations: 69.61 kB / 411.3 MB, free: 9.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.5655, allocations: 0.6037 MB / 411.9 MB, free: 9.781 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.656e-05/0.5655, allocations: 3.844 kB / 411.9 MB, free: 9.781 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.425e-05/0.5656, allocations: 22.19 kB / 411.9 MB, free: 9.781 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/0.5657, allocations: 15.73 kB / 411.9 MB, free: 9.777 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001689/0.5674, allocations: 0.5291 MB / 412.4 MB, free: 9.691 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004725/0.5721, allocations: 2.32 MB / 414.8 MB, free: 8.406 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001497/0.5736, allocations: 488.8 kB / 415.2 MB, free: 8.293 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.392e-05/0.5737, allocations: 7.75 kB / 415.2 MB, free: 8.293 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.5737, allocations: 42.39 kB / 415.3 MB, free: 8.246 MB / 314.7 MB Notification: Performance of pre-optimization done (n=45): time 3.977e-06/0.5738, allocations: 0 / 415.3 MB, free: 8.246 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.02174/0.5955, allocations: 3.7 MB / 419 MB, free: 6.926 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/0.5956, allocations: 81.55 kB / 419.1 MB, free: 6.832 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009396/0.5965, allocations: 486.2 kB / 419.5 MB, free: 6.672 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001221/0.5967, allocations: 35.61 kB / 419.6 MB, free: 6.641 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.5969, allocations: 342.4 kB / 419.9 MB, free: 6.398 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002075/0.5971, allocations: 219.7 kB / 420.1 MB, free: 6.242 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.054e-05/0.5972, allocations: 13.81 kB / 420.1 MB, free: 6.238 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.376e-05/0.5972, allocations: 345.2 kB / 420.5 MB, free: 5.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009055/0.5982, allocations: 251.8 kB / 420.7 MB, free: 5.875 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009239/0.5991, allocations: 346.3 kB / 421.1 MB, free: 5.754 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009851/0.6001, allocations: 295.8 kB / 421.3 MB, free: 5.719 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.6001, allocations: 3.875 kB / 421.4 MB, free: 5.719 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002238/0.6024, allocations: 0.7133 MB / 422.1 MB, free: 5.57 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.6024, allocations: 7.281 kB / 422.1 MB, free: 5.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.6024, allocations: 4 kB / 422.1 MB, free: 5.566 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002184/0.6027, allocations: 31.16 kB / 422.1 MB, free: 5.555 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001412/0.6041, allocations: 168.4 kB / 422.3 MB, free: 5.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/0.6051, allocations: 1.337 MB / 423.6 MB, free: 4.219 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.6062, allocations: 44.97 kB / 423.7 MB, free: 4.207 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.972e-05/0.6063, allocations: 29.55 kB / 423.7 MB, free: 4.203 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004479/0.6067, allocations: 203.2 kB / 423.9 MB, free: 4.074 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.6069, allocations: 61.97 kB / 423.9 MB, free: 4.043 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002827/0.6098, allocations: 0.86 MB / 424.8 MB, free: 3.844 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.6098, allocations: 8.031 kB / 424.8 MB, free: 3.844 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.6098, allocations: 0 / 424.8 MB, free: 3.844 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.439e-05/0.6098, allocations: 11.84 kB / 424.8 MB, free: 3.836 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00563/0.6155, allocations: 1.884 MB / 426.7 MB, free: 3.145 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.6155, allocations: 0 / 426.7 MB, free: 3.145 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009843/0.6165, allocations: 113.6 kB / 426.8 MB, free: 3.121 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004183/0.6207, allocations: 0.502 MB / 427.3 MB, free: 2.953 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.445e-05/0.6208, allocations: 18.58 kB / 427.3 MB, free: 2.949 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007228/0.6281, allocations: 3.015 MB / 430.3 MB, free: 1.301 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.6281, allocations: 0 / 430.3 MB, free: 1.301 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004737/0.6329, allocations: 1.43 MB / 431.8 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004321/0.6333, allocations: 208.1 kB / 432 MB, free: 0.707 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001468/0.6335, allocations: 19.08 kB / 432 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.6345, allocations: 50.62 kB / 432.1 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/0.6347, allocations: 47.8 kB / 432.1 MB, free: 0.668 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.838e-05/0.6348, allocations: 19.31 kB / 432.1 MB, free: 0.668 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006218/0.6354, allocations: 389 kB / 432.5 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.313e-06/0.6354, allocations: 0 / 432.5 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001052/0.6365, allocations: 193.8 kB / 432.7 MB, free: 0.5234 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.00539/0.6419, allocations: 2.103 MB / 434.8 MB, free: 15.49 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002305/0.6442, allocations: 0.7515 MB / 435.5 MB, free: 15.28 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.6443, allocations: 0 / 435.5 MB, free: 15.28 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001443/0.6457, allocations: 0.523 MB / 436.1 MB, free: 15.1 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009135/0.6467, allocations: 75.92 kB / 436.1 MB, free: 15.08 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01213/0.6588, allocations: 5.724 MB / 441.9 MB, free: 10.14 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006216/0.6595, allocations: 0.9201 MB / 442.8 MB, free: 9.191 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007216/0.6602, allocations: 243.3 kB / 443 MB, free: 8.957 MB / 330.7 MB Notification: Performance of SimCode: time 1.272e-06/0.6602, allocations: 0 / 443 MB, free: 8.957 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.873/3.533, allocations: 14.27 MB / 457.3 MB, free: 10.7 MB / 346.7 MB