Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001113/0.001112, allocations: 201.1 kB / 8.766 MB, free: 324 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 225.6 MB / 234.8 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009656/0.0009654, allocations: 94.19 kB / 286.7 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.83e-05/2.821e-05, allocations: 7.984 kB / 343.8 MB, free: 8.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.122, allocations: 51.47 MB / 395.3 MB, free: 4.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.379/0.5011, allocations: 82.62 MB / 477.9 MB, free: 10.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003721/0.5015, allocations: 80.45 kB / 478 MB, free: 9.992 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02702/0.5285, allocations: 10.59 MB / 488.6 MB, free: 1.812 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.5286, allocations: 4.047 kB / 488.6 MB, free: 1.812 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.361e-05/0.5286, allocations: 8 kB / 488.6 MB, free: 1.805 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001445/0.5301, allocations: 0.6534 MB / 489.2 MB, free: 1.141 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/0.5302, allocations: 8.031 kB / 489.2 MB, free: 1.133 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007186/0.5309, allocations: 102.2 kB / 489.3 MB, free: 1.039 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00047/0.5314, allocations: 298.7 kB / 489.6 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.5314, allocations: 19.61 kB / 489.6 MB, free: 0.7266 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.4e-05/0.5315, allocations: 20 kB / 489.7 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003976/0.5319, allocations: 209.9 kB / 489.9 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004365/0.5323, allocations: 279.7 kB / 490.1 MB, free: 372 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.5324, allocations: 0 / 490.1 MB, free: 372 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.5324, allocations: 0 / 490.1 MB, free: 372 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.126e-06/0.5324, allocations: 8 kB / 490.2 MB, free: 364 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002227/0.5347, allocations: 1.301 MB / 491.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000299/0.535, allocations: 164.3 kB / 491.6 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.5351, allocations: 75.39 kB / 491.7 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001305/0.5364, allocations: 1.199 MB / 492.9 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.917e-05/0.5365, allocations: 42.53 kB / 492.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.703e-06/0.5365, allocations: 0 / 492.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003603/0.5369, allocations: 120.5 kB / 493 MB, free: 13.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.537, allocations: 85.06 kB / 493.1 MB, free: 13.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003218/0.5373, allocations: 236.3 kB / 493.4 MB, free: 13.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.318e-05/0.5373, allocations: 25.7 kB / 493.4 MB, free: 13.19 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/0.5375, allocations: 242.5 kB / 493.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.122e-05/0.5376, allocations: 50.48 kB / 493.7 MB, free: 12.94 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.044e-05/0.5376, allocations: 0 / 493.7 MB, free: 12.94 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.5378, allocations: 336.1 kB / 494 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.39e-05/0.5379, allocations: 46.81 kB / 494 MB, free: 12.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.5381, allocations: 172.8 kB / 494.2 MB, free: 12.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/0.5382, allocations: 69.41 kB / 494.3 MB, free: 12.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.164e-06/0.5382, allocations: 4 kB / 494.3 MB, free: 12.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004301/0.5387, allocations: 231.8 kB / 494.5 MB, free: 12.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.5387, allocations: 8 kB / 494.5 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.5387, allocations: 4.781 kB / 494.5 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.761e-05/0.5387, allocations: 12 kB / 494.5 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003114/0.5391, allocations: 87.02 kB / 494.6 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.703e-05/0.5391, allocations: 7.953 kB / 494.6 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.5393, allocations: 31.69 kB / 494.7 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.716e-05/0.5394, allocations: 15.98 kB / 494.7 MB, free: 11.98 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001041/0.5395, allocations: 112.3 kB / 494.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002332/0.5397, allocations: 120.5 kB / 494.9 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.491e-05/0.5398, allocations: 27.7 kB / 494.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.215e-05/0.5399, allocations: 28.64 kB / 495 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.707e-06/0.5399, allocations: 7.984 kB / 495 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.5399, allocations: 0 / 495 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.5399, allocations: 0 / 495 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007256/0.5406, allocations: 443.8 kB / 495.4 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.5406, allocations: 4 kB / 495.4 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002125/0.5409, allocations: 43.94 kB / 495.4 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.063e-05/0.5409, allocations: 7.953 kB / 495.5 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.5409, allocations: 0 / 495.5 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.5409, allocations: 0 / 495.5 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.5409, allocations: 4.188 kB / 495.5 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000453/0.5414, allocations: 374.1 kB / 495.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001152/0.5415, allocations: 104.8 kB / 495.9 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.956e-05/0.5416, allocations: 0 / 495.9 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002166/0.5418, allocations: 15.98 kB / 495.9 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.603e-05/0.5419, allocations: 14.98 kB / 496 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.5419, allocations: 12.05 kB / 496 MB, free: 10.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002024/0.5421, allocations: 176.1 kB / 496.1 MB, free: 10.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5421, allocations: 0 / 496.1 MB, free: 10.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005339/0.5426, allocations: 71.75 kB / 496.2 MB, free: 10.52 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor_e.i,converter_m.Phi.re) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008829/0.5435, allocations: 1.069 MB / 497.3 MB, free: 9.465 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003087/0.5439, allocations: 132.6 kB / 497.4 MB, free: 9.371 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.5439, allocations: 0 / 497.4 MB, free: 9.371 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.482e-05/0.544, allocations: 50.36 kB / 497.5 MB, free: 9.336 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003273/0.5443, allocations: 23.08 kB / 497.5 MB, free: 9.324 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/0.5457, allocations: 0.5095 MB / 498 MB, free: 8.801 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000384/0.5461, allocations: 0.7755 MB / 498.8 MB, free: 8 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001521/0.5463, allocations: 34.06 kB / 498.8 MB, free: 7.969 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.5464, allocations: 103.6 kB / 498.9 MB, free: 7.938 MB / 362.7 MB Notification: Performance of SimCode: time 6.81e-07/0.5464, allocations: 0 / 498.9 MB, free: 7.938 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0272/0.5737, allocations: 4.141 MB / 0.4912 GB, free: 3.852 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002703/0.574, allocations: 168.9 kB / 0.4914 GB, free: 3.66 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.971/2.545, allocations: 2.375 kB / 0.4914 GB, free: 3.66 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat does not exist to compare? outputFormat=mat