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.001035/0.001035, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.009329/0.00933, allocations: 1.182 MB / 14.44 MB, free: 0.8594 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.54/1.54, allocations: 221.3 MB / 236.6 MB, free: 1.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 97.73 kB / 287.8 MB, free: 5.734 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.748e-05/3.774e-05, allocations: 0 / 346.5 MB, free: 5.902 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1173, allocations: 50.68 MB / 397.2 MB, free: 3.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3607/0.4781, allocations: 85.32 MB / 482.5 MB, free: 8.328 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/0.4784, allocations: 68.91 kB / 482.6 MB, free: 8.297 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03283/0.5112, allocations: 12.89 MB / 495.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5113, allocations: 0 / 495.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.263e-05/0.5113, allocations: 8 kB / 495.5 MB, free: 13.39 MB / 362.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.0009783/0.5123, allocations: 0.6243 MB / 496.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.5123, allocations: 8.031 kB / 496.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.346e-05/0.5124, allocations: 71.59 kB / 496.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.673e-05/0.5125, allocations: 39.53 kB / 496.2 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004736/0.513, allocations: 316.2 kB / 496.5 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.391e-05/0.513, allocations: 26.72 kB / 496.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.145e-05/0.5131, allocations: 34 kB / 496.6 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005085/0.5136, allocations: 272.8 kB / 496.8 MB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.5136, allocations: 3.938 kB / 496.8 MB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.509e-05/0.5137, allocations: 17.98 kB / 496.9 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.5137, allocations: 8 kB / 496.9 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004031/0.5141, allocations: 229.3 kB / 497.1 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002057/0.5162, allocations: 1.179 MB / 498.3 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003882/0.5166, allocations: 189.2 kB / 498.4 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001269/0.5167, allocations: 75.22 kB / 498.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.992e-05/0.5168, allocations: 16.33 kB / 498.5 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/0.5168, allocations: 37.89 kB / 498.6 MB, free: 10.62 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.703e-06/0.5168, allocations: 0 / 498.6 MB, free: 10.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.002391/0.5192, allocations: 0.6971 MB / 499.3 MB, free: 10.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.5193, allocations: 59.59 kB / 499.3 MB, free: 9.953 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003304/0.5196, allocations: 279.5 kB / 499.6 MB, free: 9.723 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.872e-05/0.5196, allocations: 28.95 kB / 499.6 MB, free: 9.691 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.5198, allocations: 239 kB / 499.9 MB, free: 9.492 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.57e-05/0.5199, allocations: 96.08 kB / 500 MB, free: 9.41 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.644e-05/0.5199, allocations: 7.312 kB / 500 MB, free: 9.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.5201, allocations: 343.5 kB / 0.4886 GB, free: 9.078 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.5203, allocations: 95.05 kB / 0.4887 GB, free: 9.016 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002515/0.5206, allocations: 191.1 kB / 0.4888 GB, free: 8.824 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002026/0.5208, allocations: 117.6 kB / 0.489 GB, free: 8.746 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.5208, allocations: 7.938 kB / 0.489 GB, free: 8.738 MB / 362.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009114/0.5217, allocations: 450.4 kB / 0.4894 GB, free: 8.387 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.5217, allocations: 5.719 kB / 0.4894 GB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.5217, allocations: 4 kB / 0.4894 GB, free: 8.379 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001878/0.5236, allocations: 194.3 kB / 0.4896 GB, free: 8.203 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003166/0.524, allocations: 79.89 kB / 0.4897 GB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008234/0.5248, allocations: 1.176 MB / 0.4908 GB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002942/0.5251, allocations: 31.55 kB / 0.4908 GB, free: 6.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.423e-05/0.5252, allocations: 23.23 kB / 0.4909 GB, free: 6.914 MB / 362.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 () * 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.0001144/0.5253, allocations: 129.8 kB / 0.491 GB, free: 6.793 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.481e-05/0.5253, allocations: 31.62 kB / 0.491 GB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008849/0.5262, allocations: 381.2 kB / 0.4914 GB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-06/0.5263, allocations: 7.922 kB / 0.4914 GB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.5263, allocations: 0 / 0.4914 GB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.5263, allocations: 4 kB / 0.4914 GB, free: 6.469 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000455/0.5268, allocations: 373.7 kB / 0.4918 GB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.5268, allocations: 0 / 0.4918 GB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002304/0.527, allocations: 54.97 kB / 0.4918 GB, free: 6.074 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001715/0.5287, allocations: 190.3 kB / 0.492 GB, free: 5.902 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.189e-05/0.5288, allocations: 3.25 kB / 0.492 GB, free: 5.902 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007376/0.5295, allocations: 1.179 MB / 0.4931 GB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.5295, allocations: 0 / 0.4931 GB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008447/0.5304, allocations: 445.3 kB / 0.4936 GB, free: 4.355 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.741e-05/0.5305, allocations: 104.1 kB / 0.4937 GB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/0.5305, allocations: 2.812 kB / 0.4937 GB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002239/0.5308, allocations: 27.59 kB / 0.4937 GB, free: 4.215 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.971e-05/0.5308, allocations: 24.06 kB / 0.4937 GB, free: 4.191 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.402e-05/0.5309, allocations: 11.94 kB / 0.4937 GB, free: 4.184 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002154/0.5311, allocations: 227.7 kB / 0.4939 GB, free: 4.004 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5311, allocations: 0 / 0.4939 GB, free: 4.004 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004804/0.5316, allocations: 107.5 kB / 0.494 GB, free: 3.91 MB / 362.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 () * 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.001189/0.5328, allocations: 1.043 MB / 0.4951 GB, free: 2.914 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005271/0.5333, allocations: 250.5 kB / 0.4953 GB, free: 2.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.5333, allocations: 0 / 0.4953 GB, free: 2.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002863/0.5336, allocations: 145 kB / 0.4954 GB, free: 2.621 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.5339, allocations: 32.75 kB / 0.4955 GB, free: 2.598 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.5351, allocations: 491.3 kB / 0.4959 GB, free: 2.141 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.5354, allocations: 0.8028 MB / 0.4967 GB, free: 1.309 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000165/0.5356, allocations: 36.45 kB / 0.4968 GB, free: 1.273 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.5358, allocations: 115.5 kB / 0.4969 GB, free: 1.242 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.5358, allocations: 0 / 0.4969 GB, free: 1.242 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02199/0.5578, allocations: 7.608 MB / 0.5043 GB, free: 9.855 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001992/0.558, allocations: 180.6 kB / 0.5045 GB, free: 9.633 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.311/2.869, allocations: 0 / 0.5045 GB, free: 9.633 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)