Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr FluxTubesExtension_FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo", uses=false) Using package FluxTubesExtension with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_ShowSoftMagneticCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_ShowSoftMagneticCharacteristic",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.005157/0.005157, allocations: 96.69 kB / 15.73 MB, free: 6.031 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.001233/0.001233, allocations: 194.6 kB / 16.68 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.01789/0.01789, allocations: 1.242 MB / 291.8 MB, free: 1.012 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 63.23 kB / 402.8 MB, free: 9.156 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09215/0.09346, allocations: 49.7 MB / 452.5 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic): time 0.002538/0.09604, allocations: 1.557 MB / 454 MB, free: 3.047 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001862/0.09793, allocations: 1.258 MB / 455.3 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.64e-05/0.09804, allocations: 4 kB / 455.3 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005429/0.09861, allocations: 147.4 kB / 455.4 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007673/0.09939, allocations: 262.3 kB / 455.7 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.026e-05/0.09941, allocations: 0 / 455.7 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001705/0.09959, allocations: 107.5 kB / 455.8 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.447e-05/0.09965, allocations: 17.42 kB / 455.8 MB, free: 1.254 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001186/0.09977, allocations: 51.78 kB / 455.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001655/0.09995, allocations: 63.69 kB / 455.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.771e-05/0.09998, allocations: 4 kB / 455.9 MB, free: 1.137 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006381/0.1006, allocations: 415.1 kB / 456.3 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.964e-05/0.1007, allocations: 35.89 kB / 456.4 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.091e-05/0.1008, allocations: 59.53 kB / 456.4 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000515/0.1013, allocations: 338.8 kB / 456.8 MB, free: 312 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1013, allocations: 0 / 456.8 MB, free: 312 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1013, allocations: 0 / 456.8 MB, free: 312 kB / 318.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.1013, allocations: 0 / 456.8 MB, free: 312 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007469/0.1021, allocations: 490.1 kB / 457.3 MB, free: 15.78 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.1021, allocations: 12.03 kB / 457.3 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.464e-05/0.1022, allocations: 38.75 kB / 457.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.538e-05/0.1022, allocations: 16.84 kB / 457.3 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.1025, allocations: 239.8 kB / 457.6 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.1025, allocations: 8.312 kB / 457.6 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.58e-05/0.1025, allocations: 12.31 kB / 457.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001556/0.1027, allocations: 101.8 kB / 457.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-06/0.1027, allocations: 0 / 457.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.1027, allocations: 4 kB / 457.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.1027, allocations: 0 / 457.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001758/0.1029, allocations: 151.8 kB / 457.8 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002667/0.1032, allocations: 269.5 kB / 458.1 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.1034, allocations: 150.5 kB / 458.2 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.312e-05/0.1035, allocations: 72.81 kB / 458.3 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.699e-05/0.1036, allocations: 31.98 kB / 458.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/0.1036, allocations: 38.5 kB / 458.4 MB, free: 14.53 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.082e-06/0.1036, allocations: 0 / 458.4 MB, free: 14.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.001706/0.1053, allocations: 451.5 kB / 458.8 MB, free: 14.06 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.1054, allocations: 55.34 kB / 458.9 MB, free: 14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002346/0.1056, allocations: 211 kB / 459.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.1056, allocations: 37.69 kB / 459.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.707e-05/0.1057, allocations: 112.1 kB / 459.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.861e-05/0.1058, allocations: 27.75 kB / 459.2 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.581e-05/0.1058, allocations: 29.7 kB / 459.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.1059, allocations: 322.8 kB / 459.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.232e-05/0.106, allocations: 59.97 kB / 459.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.248e-05/0.1061, allocations: 68.28 kB / 459.7 MB, free: 13.11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001622/0.1063, allocations: 132.7 kB / 459.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.1063, allocations: 3.938 kB / 459.9 MB, free: 12.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0007533/0.107, allocations: 238.3 kB / 460.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.1071, allocations: 6.031 kB / 460.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1071, allocations: 0 / 460.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000668/0.1078, allocations: 72.78 kB / 460.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.076e-05/0.1078, allocations: 19.98 kB / 460.2 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002041/0.1099, allocations: 1.554 MB / 461.7 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.501e-05/0.11, allocations: 7.984 kB / 461.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.11, allocations: 0 / 461.7 MB, free: 10.93 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (8): * Single equations (assignments): 7 * 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 prepare postOptimizeDAE: time 0.0001247/0.1101, allocations: 125.8 kB / 461.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.422e-05/0.1102, allocations: 19.84 kB / 461.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008142/0.111, allocations: 268 kB / 462.1 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.111, allocations: 4 kB / 462.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.111, allocations: 0 / 462.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.111, allocations: 0 / 462.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002324/0.1113, allocations: 265.5 kB / 462.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.1113, allocations: 0 / 462.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.024e-05/0.1113, allocations: 19.94 kB / 462.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006222/0.112, allocations: 68.78 kB / 462.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.112, allocations: 11.98 kB / 462.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001864/0.1139, allocations: 1.547 MB / 464.1 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.1139, allocations: 3.938 kB / 464.1 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007541/0.1146, allocations: 265.8 kB / 464.3 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.104e-05/0.1147, allocations: 89.02 kB / 464.4 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.1148, allocations: 7.938 kB / 464.4 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.352e-05/0.1148, allocations: 0 / 464.4 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.184e-05/0.1149, allocations: 11.98 kB / 464.4 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.1149, allocations: 7.984 kB / 464.4 MB, free: 7.992 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001448/0.115, allocations: 164.6 kB / 464.6 MB, free: 7.832 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.115, allocations: 0 / 464.6 MB, free: 7.832 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003804/0.1154, allocations: 75.81 kB / 464.7 MB, free: 7.758 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (8): * Single equations (assignments): 7 * 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.001258/0.1167, allocations: 0.8667 MB / 465.5 MB, free: 6.855 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005822/0.1173, allocations: 274.5 kB / 465.8 MB, free: 6.574 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1173, allocations: 0 / 465.8 MB, free: 6.574 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003684/0.1177, allocations: 206.6 kB / 466 MB, free: 6.359 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002812/0.118, allocations: 31.91 kB / 466 MB, free: 6.332 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006118/0.1241, allocations: 2.471 MB / 468.5 MB, free: 3.766 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.1244, allocations: 0.724 MB / 469.2 MB, free: 3.016 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.866e-05/0.1245, allocations: 21.28 kB / 469.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.208e-05/0.1246, allocations: 35.42 kB / 469.3 MB, free: 2.965 MB / 334.1 MB Notification: Performance of SimCode: time 6.72e-07/0.1246, allocations: 0 / 469.3 MB, free: 2.965 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02709/0.1517, allocations: 5.241 MB / 474.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.38, allocations: 11.75 kB / 474.5 MB, free: 13.88 MB / 350.1 MB (rm -f FluxTubesExtension_FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic.pipe ; mkfifo FluxTubesExtension_FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic.pipe ; head -c 1048576 < FluxTubesExtension_FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic.pipe >> ../files/FluxTubesExtension_FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic.sim & python3 -m fmpy simulate --output-file FluxTubesExtension_FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 FluxTubesExtension_FluxTubesExtension_Examples_ShowSoftMagneticCharacteristic.fmu > FluxTubesExtension_FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic.pipe 2>&1)