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.001409/0.001409, 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.002021/0.002021, allocations: 195.6 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.405/1.405, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.007966/0.007966, allocations: 1.235 MB / 291.6 MB, free: 1.102 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 59.91 kB / 352.4 MB, free: 1.656 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2975, allocations: 49.69 MB / 402.1 MB, free: 10.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(FluxTubesExtension.Examples.ToroidalCoreAirgap): time 0.00517/0.3027, allocations: 2.977 MB / 405.1 MB, free: 8.625 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002974/0.3057, allocations: 1.406 MB / 406.5 MB, free: 7.629 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002918/0.306, allocations: 5.406 kB / 406.5 MB, free: 7.629 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000676/0.3068, allocations: 154.9 kB / 406.7 MB, free: 7.555 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004094/0.3072, allocations: 109.5 kB / 406.8 MB, free: 7.48 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.3083, allocations: 267.9 kB / 407 MB, free: 7.352 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005746/0.3089, allocations: 435.8 kB / 407.5 MB, free: 7.137 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002992/0.3092, allocations: 143.7 kB / 407.6 MB, free: 7.062 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003028/0.3095, allocations: 169.3 kB / 407.8 MB, free: 6.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.3098, allocations: 195.9 kB / 408 MB, free: 6.879 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.653e-05/0.3099, allocations: 34.53 kB / 408 MB, free: 6.879 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004156/0.3103, allocations: 213.5 kB / 408.2 MB, free: 6.809 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001859/0.3105, allocations: 91.48 kB / 408.3 MB, free: 6.754 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002274/0.3107, allocations: 190.2 kB / 408.5 MB, free: 6.637 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008142/0.3115, allocations: 0.5179 MB / 409 MB, free: 6.426 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3116, allocations: 0 / 409 MB, free: 6.426 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3116, allocations: 0 / 409 MB, free: 6.426 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.3116, allocations: 5.188 kB / 409 MB, free: 6.422 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.001361/0.3129, allocations: 0.7061 MB / 409.7 MB, free: 5.863 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.313, allocations: 12.84 kB / 409.7 MB, free: 5.859 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.187e-05/0.3131, allocations: 68.81 kB / 409.8 MB, free: 5.801 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.361e-05/0.3132, allocations: 41.95 kB / 409.8 MB, free: 5.781 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004348/0.3137, allocations: 324.8 kB / 410.1 MB, free: 5.496 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.696e-05/0.3137, allocations: 22.38 kB / 410.2 MB, free: 5.488 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.481e-05/0.3138, allocations: 32.89 kB / 410.2 MB, free: 5.477 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007382/0.3145, allocations: 300.4 kB / 410.5 MB, free: 5.352 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.3145, allocations: 1.375 kB / 410.5 MB, free: 5.352 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.519e-05/0.3146, allocations: 19.41 kB / 410.5 MB, free: 5.336 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.3146, allocations: 6.875 kB / 410.5 MB, free: 5.336 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007159/0.3153, allocations: 272.2 kB / 410.8 MB, free: 5.258 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001943/0.3173, allocations: 1.175 MB / 412 MB, free: 4.43 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004822/0.3178, allocations: 195.1 kB / 412.2 MB, free: 4.355 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002406/0.318, allocations: 86.41 kB / 412.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.618e-05/0.3181, allocations: 15.36 kB / 412.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.3181, allocations: 40.14 kB / 412.3 MB, free: 4.27 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 2.034e-06/0.3182, allocations: 0 / 412.3 MB, free: 4.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=27): time 0.003518/0.3217, allocations: 0.9042 MB / 413.2 MB, free: 3.98 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.56e-05/0.3217, allocations: 54.27 kB / 413.2 MB, free: 3.918 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004667/0.3222, allocations: 315 kB / 413.6 MB, free: 3.746 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.3222, allocations: 31.98 kB / 413.6 MB, free: 3.711 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.3224, allocations: 234.9 kB / 413.8 MB, free: 3.512 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.687e-05/0.3225, allocations: 95.03 kB / 413.9 MB, free: 3.438 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.3226, allocations: 72.81 kB / 414 MB, free: 3.387 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.3228, allocations: 344.7 kB / 414.3 MB, free: 3.059 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003699/0.3231, allocations: 113.3 kB / 414.4 MB, free: 3.031 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004712/0.3236, allocations: 224.5 kB / 414.6 MB, free: 2.871 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007417/0.3244, allocations: 347 kB / 415 MB, free: 2.66 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.3244, allocations: 1.531 kB / 415 MB, free: 2.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001619/0.326, allocations: 0.6035 MB / 415.6 MB, free: 2.453 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.861e-05/0.3261, allocations: 6.984 kB / 415.6 MB, free: 2.453 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.3261, allocations: 2.875 kB / 415.6 MB, free: 2.453 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002364/0.3284, allocations: 0.8187 MB / 416.4 MB, free: 2.375 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003757/0.3288, allocations: 78.48 kB / 416.5 MB, free: 2.363 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006933/0.3295, allocations: 1.183 MB / 417.7 MB, free: 1.25 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003384/0.3299, allocations: 20.72 kB / 417.7 MB, free: 1.246 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.097e-05/0.3299, allocations: 16.84 kB / 417.7 MB, free: 1.242 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 (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002065/0.3301, allocations: 158.5 kB / 417.9 MB, free: 1.098 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.187e-05/0.3302, allocations: 35.09 kB / 417.9 MB, free: 1.078 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001448/0.3317, allocations: 0.5314 MB / 418.4 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.3317, allocations: 3.266 kB / 418.4 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/0.3317, allocations: 1.438 kB / 418.4 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.3317, allocations: 1.031 kB / 418.4 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005606/0.3323, allocations: 376 kB / 418.8 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3323, allocations: 1.281 kB / 418.8 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002329/0.3325, allocations: 37.73 kB / 418.8 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00232/0.3349, allocations: 0.8188 MB / 419.7 MB, free: 0.543 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.037e-05/0.3349, allocations: 5.812 kB / 419.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008927/0.3358, allocations: 1.176 MB / 420.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.3358, allocations: 0 / 420.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001553/0.3374, allocations: 0.5949 MB / 421.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.3375, allocations: 104.2 kB / 421.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.257e-05/0.3376, allocations: 6.156 kB / 421.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.3378, allocations: 19.73 kB / 421.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.686e-05/0.3379, allocations: 28.59 kB / 421.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.105e-05/0.338, allocations: 8.406 kB / 421.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000331/0.3383, allocations: 220.2 kB / 421.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3383, allocations: 0 / 421.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006779/0.339, allocations: 106.9 kB / 421.9 MB, free: 14.77 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 (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001927/0.3409, allocations: 1.174 MB / 423.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001096/0.342, allocations: 321.5 kB / 423.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.342, allocations: 1.188 kB / 423.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005137/0.3426, allocations: 171.3 kB / 423.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004566/0.343, allocations: 45.44 kB / 423.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007345/0.3504, allocations: 3.824 MB / 427.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004663/0.3509, allocations: 0.7885 MB / 428.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000207/0.3511, allocations: 36.36 kB / 428.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002201/0.3514, allocations: 115.5 kB / 428.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of SimCode: time 1.433e-06/0.3514, allocations: 0 / 428.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0347/0.3861, allocations: 7.209 MB / 435.6 MB, free: 5.246 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.47, allocations: 7.859 kB / 435.6 MB, free: 5.238 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 & python3 -m fmpy simulate --output-file FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 FluxTubesExtension_FluxTubesExtension_Examples_ToroidalCoreAirgap.fmu > FluxTubesExtension_FluxTubesExtension.Examples.ToroidalCoreAirgap.pipe 2>&1)