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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 FluxTubesExtension with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.008645/0.008645, allocations: 172 kB / 15.11 MB, free: 5.98 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.00895/0.00895, allocations: 1.226 MB / 17.08 MB, free: 4.883 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.543/1.543, allocations: 223.2 MB / 241.3 MB, free: 10.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009038/0.0009038, allocations: 94.84 kB / 292.7 MB, free: 9.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003759/0.0003759, allocations: 8 kB / 354 MB, free: 12.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2599, allocations: 50.67 MB / 404.6 MB, free: 30.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1141/0.3741, allocations: 85.4 MB / 490 MB, free: 9.422 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002533/0.3744, allocations: 71.97 kB / 490.1 MB, free: 9.352 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03754/0.412, allocations: 12.91 MB / 0.4912 GB, free: 12.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.412, allocations: 0 / 0.4912 GB, free: 12.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.963e-05/0.412, allocations: 8 kB / 0.4912 GB, free: 12.36 MB / 378.7 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.0015/0.4135, allocations: 0.6591 MB / 0.4919 GB, free: 11.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.4136, allocations: 8.031 kB / 0.4919 GB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001519/0.4138, allocations: 70.53 kB / 0.492 GB, free: 11.56 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.4139, allocations: 43.44 kB / 0.492 GB, free: 11.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000592/0.4145, allocations: 310.8 kB / 0.4923 GB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.645e-05/0.4146, allocations: 28.66 kB / 0.4923 GB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.053e-05/0.4146, allocations: 32 kB / 0.4924 GB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006744/0.4153, allocations: 310 kB / 0.4926 GB, free: 10.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.4153, allocations: 3.938 kB / 0.4927 GB, free: 10.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.317e-05/0.4154, allocations: 16 kB / 0.4927 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.4154, allocations: 8 kB / 0.4927 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007524/0.4162, allocations: 294.5 kB / 0.493 GB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002962/0.4191, allocations: 1.19 MB / 0.4941 GB, free: 9.211 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007252/0.4199, allocations: 214.5 kB / 0.4943 GB, free: 8.992 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001105/0.42, allocations: 12 kB / 0.4943 GB, free: 8.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.258e-05/0.4201, allocations: 30.91 kB / 0.4944 GB, free: 8.941 MB / 378.7 MB Notification: Performance of pre-optimization done (n=20): time 3.476e-06/0.4201, allocations: 0 / 0.4944 GB, free: 8.941 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.004203/0.4243, allocations: 0.8826 MB / 0.4952 GB, free: 8.047 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.4245, allocations: 63.59 kB / 0.4953 GB, free: 7.973 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005614/0.4251, allocations: 287.6 kB / 0.4956 GB, free: 7.688 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.733e-05/0.4251, allocations: 29.7 kB / 0.4956 GB, free: 7.652 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002672/0.4254, allocations: 238.8 kB / 0.4958 GB, free: 7.418 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.4256, allocations: 94.66 kB / 0.4959 GB, free: 7.324 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.951e-05/0.4256, allocations: 4 kB / 0.4959 GB, free: 7.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002336/0.4258, allocations: 342.8 kB / 0.4962 GB, free: 6.977 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004068/0.4262, allocations: 136.7 kB / 0.4964 GB, free: 6.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004656/0.4267, allocations: 228.8 kB / 0.4966 GB, free: 6.578 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004/0.4271, allocations: 155.9 kB / 0.4967 GB, free: 6.426 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.4271, allocations: 3.938 kB / 0.4967 GB, free: 6.422 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001534/0.4287, allocations: 0.5183 MB / 0.4972 GB, free: 5.891 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.4287, allocations: 4 kB / 0.4972 GB, free: 5.887 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.4287, allocations: 4 kB / 0.4973 GB, free: 5.883 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002541/0.4313, allocations: 229.5 kB / 0.4975 GB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003332/0.4316, allocations: 79.89 kB / 0.4975 GB, free: 5.574 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008987/0.4325, allocations: 1.183 MB / 0.4987 GB, free: 4.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003481/0.4329, allocations: 35.97 kB / 0.4987 GB, free: 4.305 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.725e-05/0.433, allocations: 23.92 kB / 0.4988 GB, free: 4.281 MB / 378.7 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.0002369/0.4332, allocations: 168 kB / 0.4989 GB, free: 4.109 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.768e-05/0.4333, allocations: 31.61 kB / 0.4989 GB, free: 4.078 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001386/0.4347, allocations: 463.9 kB / 0.4994 GB, free: 3.613 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.4347, allocations: 4 kB / 0.4994 GB, free: 3.609 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.4347, allocations: 0 / 0.4994 GB, free: 3.609 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.4347, allocations: 3.984 kB / 0.4994 GB, free: 3.605 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005228/0.4353, allocations: 381.3 kB / 0.4998 GB, free: 3.184 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.4353, allocations: 0 / 0.4998 GB, free: 3.184 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002306/0.4355, allocations: 51.91 kB / 0.4998 GB, free: 3.133 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00253/0.4381, allocations: 217.5 kB / 0.5 GB, free: 2.914 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.016e-05/0.4381, allocations: 12 kB / 0.5 GB, free: 2.902 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000862/0.439, allocations: 1.171 MB / 0.5012 GB, free: 1.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.439, allocations: 0 / 0.5012 GB, free: 1.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/0.4404, allocations: 0.5201 MB / 0.5017 GB, free: 1.137 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001383/0.4405, allocations: 104.7 kB / 0.5018 GB, free: 1.016 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.048e-05/0.4406, allocations: 8 kB / 0.5018 GB, free: 1.008 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002341/0.4408, allocations: 19.98 kB / 0.5018 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.118e-05/0.4409, allocations: 23.95 kB / 0.5018 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.828e-05/0.4409, allocations: 15.95 kB / 0.5018 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002818/0.4412, allocations: 223 kB / 0.5021 GB, free: 0.7305 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4412, allocations: 0 / 0.5021 GB, free: 0.7305 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005698/0.4418, allocations: 107.9 kB / 0.5022 GB, free: 0.625 MB / 378.7 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.2926/0.7344, allocations: 1.117 MB / 0.5033 GB, free: 97.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00131/0.7358, allocations: 338.6 kB / 0.5036 GB, free: 97.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.7358, allocations: 0.625 kB / 0.5036 GB, free: 97.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005938/0.7364, allocations: 169.8 kB / 0.5037 GB, free: 97.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004306/0.7369, allocations: 33.27 kB / 0.5038 GB, free: 97.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00515/0.742, allocations: 4.119 MB / 0.5078 GB, free: 94.69 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003609/0.7424, allocations: 0.797 MB / 0.5086 GB, free: 93.99 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001967/0.7426, allocations: 39.77 kB / 0.5086 GB, free: 93.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001659/0.7428, allocations: 115.5 kB / 0.5087 GB, free: 93.98 MB / 378.7 MB Notification: Performance of SimCode: time 9.92e-07/0.7428, allocations: 0 / 0.5087 GB, free: 93.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02227/0.7651, allocations: 7.486 MB / 0.516 GB, free: 93.59 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/0.7653, allocations: 212.4 kB / 0.5162 GB, free: 93.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.325/3.09, allocations: 3.938 kB / 0.5162 GB, free: 93.34 MB / 378.7 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)