Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.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.SaturatedInductor,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FluxTubesExtension.Examples.SaturatedInductor,fileNamePrefix="FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor",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.001544/0.001544, allocations: 180.9 kB / 7.65 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FluxTubesExtension 1.2.0-main/package.mo): time 0.009444/0.009445, allocations: 1.177 MB / 9.253 MB, free: 1.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 221.5 MB / 231.5 MB, free: 6.336 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.0008902/0.0008904, allocations: 108.5 kB / 282.6 MB, free: 3.812 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.747e-05/1.75e-05, allocations: 0 / 339.6 MB, free: 7.953 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1133, allocations: 50.68 MB / 390.3 MB, free: 5.227 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3625/0.4759, allocations: 83.68 MB / 474 MB, free: 8.398 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001879/0.4761, allocations: 67.97 kB / 474 MB, free: 8.332 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03031/0.5064, allocations: 11.19 MB / 485.2 MB, free: 13.1 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.5064, allocations: 0 / 485.2 MB, free: 13.1 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.259e-05/0.5065, allocations: 11.98 kB / 485.2 MB, free: 13.09 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.0007855/0.5073, allocations: 0.5683 MB / 485.8 MB, free: 12.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.5073, allocations: 11.98 kB / 485.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.932e-05/0.5074, allocations: 39.53 kB / 485.8 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003314/0.5077, allocations: 277.4 kB / 486.1 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.5078, allocations: 11.94 kB / 486.1 MB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.91e-05/0.5078, allocations: 16 kB / 486.1 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003728/0.5082, allocations: 225 kB / 486.4 MB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003808/0.5086, allocations: 223.7 kB / 486.6 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.5086, allocations: 0 / 486.6 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.267e-05/0.5086, allocations: 3.938 kB / 486.6 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/0.5086, allocations: 12 kB / 486.6 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001605/0.5103, allocations: 1.036 MB / 487.6 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003358/0.5106, allocations: 234.4 kB / 487.9 MB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.5108, allocations: 112.8 kB / 488 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.124e-05/0.5109, allocations: 23.98 kB / 488 MB, free: 10.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.5109, allocations: 30.56 kB / 488 MB, free: 10.11 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.452e-06/0.5109, allocations: 0 / 488 MB, free: 10.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.003456/0.5144, allocations: 1.307 MB / 489.3 MB, free: 8.738 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.928e-05/0.5144, allocations: 55.41 kB / 489.4 MB, free: 8.672 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000215/0.5146, allocations: 222.3 kB / 489.6 MB, free: 8.445 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.5147, allocations: 25.7 kB / 489.6 MB, free: 8.414 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.5148, allocations: 204.4 kB / 489.8 MB, free: 8.211 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.514e-05/0.5149, allocations: 106.4 kB / 489.9 MB, free: 8.105 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.464e-05/0.5149, allocations: 0 / 489.9 MB, free: 8.105 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.515, allocations: 342.8 kB / 490.3 MB, free: 7.762 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.5152, allocations: 107.9 kB / 490.4 MB, free: 7.656 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.5154, allocations: 153.1 kB / 490.5 MB, free: 7.488 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003186/0.5157, allocations: 155.7 kB / 490.7 MB, free: 7.336 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.5157, allocations: 0 / 490.7 MB, free: 7.336 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001591/0.5173, allocations: 0.6113 MB / 491.3 MB, free: 6.711 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.5174, allocations: 15.94 kB / 491.3 MB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.5174, allocations: 0 / 491.3 MB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004156/0.5178, allocations: 145.6 kB / 491.4 MB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002616/0.5181, allocations: 63.89 kB / 491.5 MB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/0.5191, allocations: 1.335 MB / 492.8 MB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001944/0.5193, allocations: 4 kB / 492.8 MB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.335e-05/0.5193, allocations: 24.11 kB / 492.9 MB, free: 5.07 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: r_mFe.H:DUMMY_STATE(unit = "A/m" ) "Magnetic field strength" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.r_mAirPar.Phi:DUMMY_DER(fixed = false ) "Magnetic flux from port_p to port_n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * 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 8,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001516/0.5195, allocations: 113.5 kB / 493 MB, free: 4.953 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001519/0.521, allocations: 0.5495 MB / 493.5 MB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.53e-05/0.5211, allocations: 35.61 kB / 493.6 MB, free: 4.355 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001606/0.5227, allocations: 0.5726 MB / 494.1 MB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.5227, allocations: 8 kB / 494.1 MB, free: 3.758 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.5227, allocations: 0 / 494.1 MB, free: 3.758 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.5228, allocations: 7.938 kB / 494.1 MB, free: 3.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001991/0.5248, allocations: 0.9891 MB / 495.1 MB, free: 2.707 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.5248, allocations: 0 / 495.1 MB, free: 2.707 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002178/0.525, allocations: 43.97 kB / 495.2 MB, free: 2.664 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003946/0.5254, allocations: 149.5 kB / 495.3 MB, free: 2.512 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.247e-05/0.5254, allocations: 8 kB / 495.3 MB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001002/0.5264, allocations: 1.327 MB / 496.7 MB, free: 1.125 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.5265, allocations: 0 / 496.7 MB, free: 1.125 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/0.5281, allocations: 0.8162 MB / 497.5 MB, free: 284 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.308e-05/0.5282, allocations: 104.8 kB / 497.6 MB, free: 160 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.126e-05/0.5283, allocations: 3.953 kB / 497.6 MB, free: 156 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/0.5285, allocations: 12.25 kB / 497.6 MB, free: 144 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.285e-05/0.5285, allocations: 19.97 kB / 497.6 MB, free: 124 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.774e-05/0.5286, allocations: 19.92 kB / 497.6 MB, free: 104 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001789/0.5288, allocations: 174 kB / 497.8 MB, free: 15.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5288, allocations: 0 / 497.8 MB, free: 15.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003972/0.5292, allocations: 83.98 kB / 497.9 MB, free: 15.85 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (coil.i) * 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 8,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002087/0.5313, allocations: 1.457 MB / 499.3 MB, free: 14.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005855/0.5319, allocations: 287.8 kB / 499.6 MB, free: 14.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.5319, allocations: 4 kB / 499.6 MB, free: 14.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003122/0.5322, allocations: 163.6 kB / 499.8 MB, free: 13.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002791/0.5325, allocations: 25.19 kB / 499.8 MB, free: 13.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.5338, allocations: 0.5594 MB / 0.4886 GB, free: 13.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004004/0.5342, allocations: 0.7957 MB / 0.4894 GB, free: 12.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001219/0.5344, allocations: 26.06 kB / 0.4894 GB, free: 12.44 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.5345, allocations: 111.4 kB / 0.4895 GB, free: 12.33 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.5345, allocations: 0 / 0.4895 GB, free: 12.33 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02513/0.5597, allocations: 5.942 MB / 0.4954 GB, free: 6.414 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000172/0.5599, allocations: 142 kB / 0.4955 GB, free: 6.219 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.086/2.646, allocations: 0 / 0.4955 GB, free: 6.219 MB / 378.7 MB (rm -f FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe ; mkfifo FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe ; head -c 1048576 < FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe >> ../files/FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 FluxTubesExtension_FluxTubesExtension_Examples_SaturatedInductor.fmu > FluxTubesExtension_FluxTubesExtension.Examples.SaturatedInductor.pipe 2>&1)