Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.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.ToroidalCoreAirgap,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FluxTubesExtension.Examples.ToroidalCoreAirgap,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap",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.0008629/0.0008629, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008932/0.0008935, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.007342/0.007342, allocations: 1.215 MB / 292.3 MB, free: 1.062 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003249/0.0003249, allocations: 8 kB / 353.6 MB, free: 2.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2974, allocations: 50.68 MB / 404.2 MB, free: 9.773 MB / 286.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ToroidalCoreAirgap): time 0.003952/0.3014, allocations: 2.533 MB / 406.8 MB, free: 9.055 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002545/0.3039, allocations: 1.287 MB / 408.1 MB, free: 8.152 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001963/0.3042, allocations: 5.219 kB / 408.1 MB, free: 8.152 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004175/0.3046, allocations: 118.1 kB / 408.2 MB, free: 8.094 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000324/0.3049, allocations: 92.95 kB / 408.3 MB, free: 8.035 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005567/0.3055, allocations: 181.5 kB / 408.4 MB, free: 7.945 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004754/0.306, allocations: 416.4 kB / 408.8 MB, free: 7.746 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002225/0.3062, allocations: 103.9 kB / 408.9 MB, free: 7.691 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002311/0.3065, allocations: 150.2 kB / 409.1 MB, free: 7.625 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000242/0.3067, allocations: 171.8 kB / 409.3 MB, free: 7.547 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.707e-05/0.3068, allocations: 25.97 kB / 409.3 MB, free: 7.539 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002437/0.307, allocations: 138.4 kB / 409.4 MB, free: 7.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.3071, allocations: 70.19 kB / 409.5 MB, free: 7.465 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.061e-05/0.3072, allocations: 92.61 kB / 409.6 MB, free: 7.398 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005574/0.3078, allocations: 365 kB / 409.9 MB, free: 7.312 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.3078, allocations: 0.7031 kB / 409.9 MB, free: 7.312 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3078, allocations: 0 / 409.9 MB, free: 7.312 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.3078, allocations: 0 / 409.9 MB, free: 7.312 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001198/0.309, allocations: 0.6609 MB / 410.6 MB, free: 6.793 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.3091, allocations: 9.875 kB / 410.6 MB, free: 6.793 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.063e-05/0.3092, allocations: 69.44 kB / 410.7 MB, free: 6.734 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.853e-05/0.3093, allocations: 38.5 kB / 410.7 MB, free: 6.715 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004157/0.3097, allocations: 317.9 kB / 411 MB, free: 6.445 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.3097, allocations: 22.06 kB / 411 MB, free: 6.438 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.464e-05/0.3098, allocations: 32.78 kB / 411.1 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006172/0.3104, allocations: 309.8 kB / 411.4 MB, free: 6.301 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.3104, allocations: 0 / 411.4 MB, free: 6.301 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.861e-05/0.3105, allocations: 19.36 kB / 411.4 MB, free: 6.285 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.3105, allocations: 12.75 kB / 411.4 MB, free: 6.281 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006296/0.3111, allocations: 289.1 kB / 411.7 MB, free: 6.199 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001734/0.3129, allocations: 1.182 MB / 412.9 MB, free: 5.371 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000454/0.3133, allocations: 197 kB / 413.1 MB, free: 5.297 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002155/0.3136, allocations: 94.14 kB / 413.2 MB, free: 5.262 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.87e-05/0.3136, allocations: 10.94 kB / 413.2 MB, free: 5.262 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.228e-05/0.3137, allocations: 40.12 kB / 413.2 MB, free: 5.215 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.303e-06/0.3137, allocations: 0 / 413.2 MB, free: 5.215 MB / 286.1 MB Notification: Performance of matching and sorting (n=27): time 0.003138/0.3168, allocations: 0.9791 MB / 414.2 MB, free: 4.914 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/0.3169, allocations: 55.38 kB / 414.2 MB, free: 4.852 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004297/0.3173, allocations: 313 kB / 414.5 MB, free: 4.68 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.229e-05/0.3173, allocations: 30.86 kB / 414.6 MB, free: 4.645 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.3175, allocations: 240.1 kB / 414.8 MB, free: 4.441 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.772e-05/0.3176, allocations: 89.59 kB / 414.9 MB, free: 4.371 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.7e-05/0.3176, allocations: 9.938 kB / 414.9 MB, free: 4.363 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.21e-05/0.3177, allocations: 345.2 kB / 415.2 MB, free: 4.035 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003215/0.318, allocations: 125.1 kB / 415.4 MB, free: 4 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003688/0.3184, allocations: 225.8 kB / 415.6 MB, free: 3.848 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003438/0.3187, allocations: 164 kB / 415.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3188, allocations: 1.188 kB / 415.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001402/0.3202, allocations: 0.6265 MB / 416.4 MB, free: 3.57 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.3202, allocations: 6.688 kB / 416.4 MB, free: 3.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.3202, allocations: 3.938 kB / 416.4 MB, free: 3.57 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002063/0.3223, allocations: 0.8154 MB / 417.2 MB, free: 3.492 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003259/0.3226, allocations: 79.14 kB / 417.3 MB, free: 3.484 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006331/0.3233, allocations: 1.176 MB / 418.5 MB, free: 2.379 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002848/0.3236, allocations: 29.3 kB / 418.5 MB, free: 2.371 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.664e-05/0.3236, allocations: 16.08 kB / 418.5 MB, free: 2.367 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001663/0.3238, allocations: 157.9 kB / 418.7 MB, free: 2.223 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.738e-05/0.3238, allocations: 30.61 kB / 418.7 MB, free: 2.207 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001225/0.3251, allocations: 0.5458 MB / 419.2 MB, free: 2.023 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.3251, allocations: 7.484 kB / 419.2 MB, free: 2.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.3251, allocations: 0 / 419.2 MB, free: 2.02 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.3251, allocations: 1.125 kB / 419.2 MB, free: 2.02 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004563/0.3256, allocations: 382.5 kB / 419.6 MB, free: 1.75 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3256, allocations: 0 / 419.6 MB, free: 1.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002077/0.3258, allocations: 51.78 kB / 419.7 MB, free: 1.742 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001827/0.3276, allocations: 0.8145 MB / 420.5 MB, free: 1.664 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.3277, allocations: 7.641 kB / 420.5 MB, free: 1.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005361/0.3282, allocations: 1.176 MB / 421.7 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3282, allocations: 0 / 421.7 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.3294, allocations: 0.6163 MB / 422.3 MB, free: 256 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.74e-05/0.3295, allocations: 101.4 kB / 422.4 MB, free: 144 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.245e-05/0.3295, allocations: 6.406 kB / 422.4 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.3298, allocations: 28.94 kB / 422.4 MB, free: 124 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.576e-05/0.3298, allocations: 23.48 kB / 422.4 MB, free: 108 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.3299, allocations: 17.52 kB / 422.5 MB, free: 96 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002668/0.3301, allocations: 217.3 kB / 422.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3301, allocations: 0 / 422.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004967/0.3306, allocations: 97.41 kB / 422.8 MB, free: 15.93 MB / 302.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 (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001636/0.3323, allocations: 1.18 MB / 423.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008853/0.3332, allocations: 336.2 kB / 424.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3332, allocations: 0 / 424.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000482/0.3337, allocations: 188.3 kB / 424.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003994/0.3341, allocations: 36.3 kB / 424.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004166/0.3383, allocations: 2.266 MB / 426.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003828/0.3387, allocations: 0.7892 MB / 427.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001748/0.3389, allocations: 39.3 kB / 427.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.339, allocations: 127 kB / 427.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.339, allocations: 0 / 427.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02164/0.3607, allocations: 6.658 MB / 434.4 MB, free: 8.57 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001987/0.3609, allocations: 216.6 kB / 434.6 MB, free: 8.328 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.966/2.327, allocations: 0 / 434.6 MB, free: 8.328 MB / 302.1 MB (rm -f FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe ; mkfifo FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe ; head -c 1048576 < FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe >> ../files/FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap.fmu > FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe 2>&1) Environment - environmentSimulation: