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.0007832/0.0007832, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005668/0.005668, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.259/1.259, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.02697/0.02697, allocations: 1.224 MB / 292.6 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003982/0.0003982, allocations: 8 kB / 354.2 MB, free: 1.816 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2673, allocations: 50.67 MB / 404.8 MB, free: 9.973 MB / 286.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic): time 0.001969/0.2693, allocations: 1.258 MB / 406.1 MB, free: 9.922 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001908/0.2712, allocations: 1.258 MB / 407.4 MB, free: 9.156 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.774e-05/0.2713, allocations: 0 / 407.4 MB, free: 9.156 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005413/0.2719, allocations: 148.9 kB / 407.5 MB, free: 9.102 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007168/0.2726, allocations: 231.2 kB / 407.7 MB, free: 8.996 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.566e-06/0.2726, allocations: 1.031 kB / 407.7 MB, free: 8.996 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002008/0.2728, allocations: 169 kB / 407.9 MB, free: 8.934 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.288e-05/0.2729, allocations: 12.91 kB / 407.9 MB, free: 8.922 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.273, allocations: 42.58 kB / 407.9 MB, free: 8.906 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.2732, allocations: 76.8 kB / 408 MB, free: 8.871 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.669e-05/0.2732, allocations: 4 kB / 408 MB, free: 8.871 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000675/0.2739, allocations: 428.7 kB / 408.4 MB, free: 8.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.612e-05/0.274, allocations: 40.31 kB / 408.5 MB, free: 8.715 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.911e-05/0.274, allocations: 83.2 kB / 408.6 MB, free: 8.645 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006027/0.2746, allocations: 370.3 kB / 408.9 MB, free: 8.539 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2747, allocations: 3.938 kB / 408.9 MB, free: 8.535 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2747, allocations: 0 / 408.9 MB, free: 8.535 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.2747, allocations: 0 / 408.9 MB, free: 8.535 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.0005529/0.2752, allocations: 469.3 kB / 409.4 MB, free: 8.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.2753, allocations: 10.12 kB / 409.4 MB, free: 8.09 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.311e-05/0.2753, allocations: 36.69 kB / 409.4 MB, free: 8.047 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.868e-05/0.2754, allocations: 16.95 kB / 409.4 MB, free: 8.039 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000206/0.2756, allocations: 230.7 kB / 409.7 MB, free: 7.816 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.2756, allocations: 5.344 kB / 409.7 MB, free: 7.812 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/0.2756, allocations: 3.875 kB / 409.7 MB, free: 7.812 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000145/0.2757, allocations: 106.8 kB / 409.8 MB, free: 7.762 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.2758, allocations: 0.7031 kB / 409.8 MB, free: 7.762 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.2758, allocations: 10.94 kB / 409.8 MB, free: 7.754 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2758, allocations: 1.375 kB / 409.8 MB, free: 7.754 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.276, allocations: 145.1 kB / 409.9 MB, free: 7.734 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002435/0.2762, allocations: 264.5 kB / 410.2 MB, free: 7.512 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001811/0.2764, allocations: 149 kB / 410.3 MB, free: 7.465 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.992e-05/0.2765, allocations: 73.09 kB / 410.4 MB, free: 7.441 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.13e-05/0.2766, allocations: 40.05 kB / 410.5 MB, free: 7.434 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.646e-05/0.2766, allocations: 44.75 kB / 410.5 MB, free: 7.383 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 1.062e-06/0.2766, allocations: 0 / 410.5 MB, free: 7.383 MB / 286.1 MB Notification: Performance of matching and sorting (n=9): time 0.001589/0.2782, allocations: 429.3 kB / 410.9 MB, free: 7.199 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.891e-05/0.2782, allocations: 53.19 kB / 411 MB, free: 7.137 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/0.2784, allocations: 220.4 kB / 411.2 MB, free: 6.996 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/0.2785, allocations: 26.8 kB / 411.2 MB, free: 6.965 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.427e-05/0.2785, allocations: 115.5 kB / 411.3 MB, free: 6.859 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.687e-05/0.2785, allocations: 32.98 kB / 411.4 MB, free: 6.832 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.252e-05/0.2786, allocations: 16.42 kB / 411.4 MB, free: 6.812 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.958e-05/0.2786, allocations: 332.6 kB / 411.7 MB, free: 6.488 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.468e-05/0.2787, allocations: 61.92 kB / 411.8 MB, free: 6.477 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.634e-05/0.2788, allocations: 61.7 kB / 411.8 MB, free: 6.465 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.279, allocations: 133 kB / 411.9 MB, free: 6.43 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.279, allocations: 3.938 kB / 412 MB, free: 6.426 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0007186/0.2797, allocations: 237.5 kB / 412.2 MB, free: 6.344 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.2797, allocations: 4.5 kB / 412.2 MB, free: 6.344 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.2797, allocations: 0.5156 kB / 412.2 MB, free: 6.344 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006504/0.2804, allocations: 74.94 kB / 412.3 MB, free: 6.328 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.876e-05/0.2804, allocations: 16.12 kB / 412.3 MB, free: 6.324 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001535/0.282, allocations: 1.427 MB / 413.7 MB, free: 4.977 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.389e-05/0.2821, allocations: 12.17 kB / 413.7 MB, free: 4.969 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.607e-06/0.2821, allocations: 2.969 kB / 413.7 MB, free: 4.969 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 7.239e-05/0.2822, allocations: 132.6 kB / 413.8 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.174e-05/0.2822, allocations: 16.23 kB / 413.9 MB, free: 4.832 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007592/0.283, allocations: 264.8 kB / 414.1 MB, free: 4.742 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.283, allocations: 0.5625 kB / 414.1 MB, free: 4.742 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.283, allocations: 6.125 kB / 414.1 MB, free: 4.738 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.283, allocations: 0.75 kB / 414.1 MB, free: 4.738 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001737/0.2832, allocations: 258.9 kB / 414.4 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.2832, allocations: 1.875 kB / 414.4 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.165e-05/0.2832, allocations: 15.72 kB / 414.4 MB, free: 4.516 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005973/0.2838, allocations: 70.42 kB / 414.5 MB, free: 4.504 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.2839, allocations: 14.55 kB / 414.5 MB, free: 4.492 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001355/0.2852, allocations: 1.431 MB / 415.9 MB, free: 3.148 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.2852, allocations: 1.344 kB / 415.9 MB, free: 3.148 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007049/0.2859, allocations: 271.1 kB / 416.2 MB, free: 3.023 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.161e-05/0.286, allocations: 91.28 kB / 416.3 MB, free: 2.922 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.56e-05/0.286, allocations: 0.6094 kB / 416.3 MB, free: 2.922 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.824e-05/0.2861, allocations: 1.984 kB / 416.3 MB, free: 2.922 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.959e-05/0.2861, allocations: 14.03 kB / 416.3 MB, free: 2.918 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.2861, allocations: 7.484 kB / 416.3 MB, free: 2.914 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001233/0.2863, allocations: 172.4 kB / 416.5 MB, free: 2.805 MB / 286.1 MB Notification: Performance of sort global known variables: time 6.71e-07/0.2863, allocations: 0 / 416.5 MB, free: 2.805 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000401/0.2867, allocations: 86.59 kB / 416.5 MB, free: 2.785 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.001018/0.2877, allocations: 0.8503 MB / 417.4 MB, free: 2.121 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004501/0.2882, allocations: 264.9 kB / 417.7 MB, free: 1.984 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.2882, allocations: 4.844 kB / 417.7 MB, free: 1.98 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003048/0.2885, allocations: 199.3 kB / 417.9 MB, free: 1.855 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002306/0.2887, allocations: 31.41 kB / 417.9 MB, free: 1.84 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005626/0.2944, allocations: 2.489 MB / 420.4 MB, free: 348 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.2946, allocations: 0.7198 MB / 421.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.232e-05/0.2947, allocations: 23.44 kB / 421.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.089e-05/0.2947, allocations: 42.53 kB / 421.2 MB, free: 15.6 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2947, allocations: 1.375 kB / 421.2 MB, free: 15.6 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01537/0.3101, allocations: 4.812 MB / 426 MB, free: 14.12 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002161/0.3104, allocations: 246.8 kB / 426.2 MB, free: 13.87 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.819/2.129, allocations: 0 / 426.2 MB, free: 13.87 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_FluxTubesExtension_FluxTubesExtension_Examples_ShowSoftMagneticCharacteristic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 FluxTubesExtension_FluxTubesExtension_Examples_ShowSoftMagneticCharacteristic.fmu > FluxTubesExtension_FluxTubesExtension.Examples.ShowSoftMagneticCharacteristic.pipe 2>&1)