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.001168/0.001168, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 193.1 kB / 16.53 MB, free: 6.664 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.419/1.419, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.01533/0.01533, allocations: 1.232 MB / 291.6 MB, free: 1.121 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 55.91 kB / 352.4 MB, free: 1.688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2389, allocations: 49.7 MB / 402.1 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic): time 0.002355/0.2413, allocations: 1.536 MB / 403.7 MB, free: 9.633 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.243, allocations: 1.26 MB / 404.9 MB, free: 8.766 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.705e-05/0.243, allocations: 0.9688 kB / 404.9 MB, free: 8.766 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005281/0.2436, allocations: 152.4 kB / 405.1 MB, free: 8.707 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005631/0.2442, allocations: 257 kB / 405.3 MB, free: 8.59 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.482e-06/0.2442, allocations: 0 / 405.3 MB, free: 8.59 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001352/0.2443, allocations: 122 kB / 405.4 MB, free: 8.531 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.638e-05/0.2444, allocations: 10.11 kB / 405.5 MB, free: 8.527 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.2445, allocations: 48.08 kB / 405.5 MB, free: 8.508 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001914/0.2447, allocations: 67.47 kB / 405.6 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.203e-05/0.2448, allocations: 4.438 kB / 405.6 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007041/0.2455, allocations: 410.3 kB / 406 MB, free: 8.328 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.302e-05/0.2456, allocations: 45.66 kB / 406 MB, free: 8.305 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.547e-05/0.2456, allocations: 50.38 kB / 406.1 MB, free: 8.273 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005516/0.2462, allocations: 337.5 kB / 406.4 MB, free: 8.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2462, allocations: 0 / 406.4 MB, free: 8.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2462, allocations: 0 / 406.4 MB, free: 8.16 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.2462, allocations: 1.188 kB / 406.4 MB, free: 8.16 MB / 286.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.0007062/0.2469, allocations: 484.9 kB / 406.9 MB, free: 7.715 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.247, allocations: 14.06 kB / 406.9 MB, free: 7.711 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.332e-05/0.247, allocations: 33.38 kB / 406.9 MB, free: 7.672 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.202e-05/0.2471, allocations: 20.47 kB / 406.9 MB, free: 7.66 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003057/0.2474, allocations: 246.4 kB / 407.2 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.2474, allocations: 2.625 kB / 407.2 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.2475, allocations: 2.625 kB / 407.2 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002029/0.2477, allocations: 111.8 kB / 407.3 MB, free: 7.367 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.2477, allocations: 0 / 407.3 MB, free: 7.367 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.2477, allocations: 0 / 407.3 MB, free: 7.367 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.2477, allocations: 1.25 kB / 407.3 MB, free: 7.367 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002118/0.2479, allocations: 151.1 kB / 407.4 MB, free: 7.34 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003418/0.2483, allocations: 257.7 kB / 407.7 MB, free: 7.125 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002466/0.2485, allocations: 149.2 kB / 407.8 MB, free: 7.078 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.535e-05/0.2486, allocations: 74.05 kB / 407.9 MB, free: 7.055 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.692e-05/0.2487, allocations: 40.2 kB / 408 MB, free: 7.047 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.2487, allocations: 40.25 kB / 408 MB, free: 7 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 1.212e-06/0.2488, allocations: 4 kB / 408 MB, free: 6.996 MB / 286.1 MB Notification: Performance of matching and sorting (n=9): time 0.001874/0.2506, allocations: 440.1 kB / 408.4 MB, free: 6.805 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.743e-05/0.2507, allocations: 52.78 kB / 408.5 MB, free: 6.742 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002663/0.2509, allocations: 217 kB / 408.7 MB, free: 6.605 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.251, allocations: 30.86 kB / 408.7 MB, free: 6.57 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.694e-05/0.251, allocations: 115.1 kB / 408.8 MB, free: 6.465 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.19e-05/0.2511, allocations: 33.03 kB / 408.9 MB, free: 6.438 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.535e-05/0.2511, allocations: 25.02 kB / 408.9 MB, free: 6.418 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.101e-05/0.2512, allocations: 329.3 kB / 409.2 MB, free: 6.098 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.999e-05/0.2513, allocations: 59.47 kB / 409.3 MB, free: 6.086 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.843e-05/0.2514, allocations: 59.22 kB / 409.3 MB, free: 6.078 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002095/0.2516, allocations: 136.2 kB / 409.5 MB, free: 6.039 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.2516, allocations: 4.938 kB / 409.5 MB, free: 6.035 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0007938/0.2524, allocations: 235.8 kB / 409.7 MB, free: 5.953 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.2525, allocations: 4.781 kB / 409.7 MB, free: 5.953 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.2525, allocations: 3.984 kB / 409.7 MB, free: 5.949 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007298/0.2532, allocations: 74.08 kB / 409.8 MB, free: 5.934 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.58e-05/0.2533, allocations: 12.53 kB / 409.8 MB, free: 5.934 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002051/0.2554, allocations: 1.548 MB / 411.3 MB, free: 4.473 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.36e-05/0.2554, allocations: 15.5 kB / 411.4 MB, free: 4.461 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.2555, allocations: 2.781 kB / 411.4 MB, free: 4.461 MB / 286.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 9.225e-05/0.2556, allocations: 123 kB / 411.5 MB, free: 4.344 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.694e-05/0.2556, allocations: 22.31 kB / 411.5 MB, free: 4.328 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008597/0.2565, allocations: 268.5 kB / 411.8 MB, free: 4.234 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.2565, allocations: 2.016 kB / 411.8 MB, free: 4.234 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.2565, allocations: 0 / 411.8 MB, free: 4.234 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2565, allocations: 2 kB / 411.8 MB, free: 4.234 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002491/0.2568, allocations: 264.3 kB / 412 MB, free: 4.012 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.2568, allocations: 3.984 kB / 412 MB, free: 4.008 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.053e-05/0.2568, allocations: 16.3 kB / 412 MB, free: 4.004 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006099/0.2574, allocations: 69.64 kB / 412.1 MB, free: 3.992 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.2575, allocations: 6.562 kB / 412.1 MB, free: 3.988 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001727/0.2592, allocations: 1.549 MB / 413.7 MB, free: 2.535 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.2592, allocations: 4.922 kB / 413.7 MB, free: 2.531 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009077/0.2601, allocations: 262.2 kB / 413.9 MB, free: 2.414 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.986e-05/0.2602, allocations: 91.73 kB / 414 MB, free: 2.312 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.2602, allocations: 13.98 kB / 414 MB, free: 2.301 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.174e-05/0.2603, allocations: 5.875 kB / 414 MB, free: 2.297 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.911e-05/0.2604, allocations: 9.141 kB / 414 MB, free: 2.297 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.2604, allocations: 4.062 kB / 414 MB, free: 2.297 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002081/0.2606, allocations: 165 kB / 414.2 MB, free: 2.195 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2606, allocations: 0 / 414.2 MB, free: 2.195 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005889/0.2612, allocations: 76.94 kB / 414.3 MB, free: 2.18 MB / 286.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.001375/0.2626, allocations: 0.8635 MB / 415.1 MB, free: 1.504 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007178/0.2633, allocations: 281 kB / 415.4 MB, free: 1.355 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.2633, allocations: 0 / 415.4 MB, free: 1.355 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003733/0.2637, allocations: 198.3 kB / 415.6 MB, free: 1.234 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.264, allocations: 28.19 kB / 415.6 MB, free: 1.223 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006887/0.2709, allocations: 2.457 MB / 418.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004587/0.2714, allocations: 0.7238 MB / 418.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.792e-05/0.2715, allocations: 23.44 kB / 418.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.864e-05/0.2716, allocations: 40.16 kB / 418.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of SimCode: time 6.091e-06/0.2716, allocations: 0 / 418.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02914/0.3008, allocations: 5.155 MB / 424 MB, free: 13.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.46, allocations: 9.797 kB / 424 MB, free: 13.41 MB / 302.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)