Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001386/0.001386, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0013/0.0013, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.433/1.433, allocations: 227.7 MB / 247 MB, free: 10.36 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 70.3 kB / 307.3 MB, free: 412 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09842/0.1004, allocations: 50.53 MB / 357.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance): time 0.004998/0.1054, allocations: 3.302 MB / 361.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002761/0.1082, allocations: 1.401 MB / 362.6 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003611/0.1086, allocations: 8 kB / 362.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005467/0.1092, allocations: 151.1 kB / 362.7 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001191/0.1104, allocations: 417.7 kB / 363.1 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005021/0.1109, allocations: 194.8 kB / 363.3 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006726/0.1116, allocations: 450.1 kB / 363.8 MB, free: 7.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00027/0.1119, allocations: 164.5 kB / 363.9 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.1121, allocations: 175.2 kB / 364.1 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002639/0.1124, allocations: 195.2 kB / 364.3 MB, free: 7.387 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.642e-05/0.1125, allocations: 36 kB / 364.3 MB, free: 7.352 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003828/0.1129, allocations: 171.8 kB / 364.5 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.683e-05/0.113, allocations: 87.67 kB / 364.6 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002116/0.1132, allocations: 191 kB / 364.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007168/0.1139, allocations: 0.545 MB / 365.3 MB, free: 6.363 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1139, allocations: 0 / 365.3 MB, free: 6.363 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1139, allocations: 4 kB / 365.3 MB, free: 6.359 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.1139, allocations: 0 / 365.3 MB, free: 6.359 MB / 302.1 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.001553/0.1155, allocations: 0.7486 MB / 366.1 MB, free: 5.562 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.1155, allocations: 8.031 kB / 366.1 MB, free: 5.555 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.451e-05/0.1156, allocations: 74.66 kB / 366.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007484/0.1164, allocations: 116.4 kB / 366.3 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004594/0.1169, allocations: 309.6 kB / 366.6 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.741e-05/0.1169, allocations: 29.31 kB / 366.6 MB, free: 4.984 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.008e-05/0.117, allocations: 32.38 kB / 366.6 MB, free: 4.953 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006547/0.1176, allocations: 357.5 kB / 367 MB, free: 4.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.1177, allocations: 0 / 367 MB, free: 4.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.785e-05/0.1177, allocations: 16 kB / 367 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.1177, allocations: 8 kB / 367 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000528/0.1183, allocations: 257.9 kB / 367.2 MB, free: 4.312 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002241/0.1205, allocations: 1.315 MB / 368.6 MB, free: 2.895 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004212/0.121, allocations: 197.2 kB / 368.8 MB, free: 2.684 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.1211, allocations: 89.62 kB / 368.8 MB, free: 2.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001184/0.1223, allocations: 1.2 MB / 370 MB, free: 1.215 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.1224, allocations: 30.56 kB / 370.1 MB, free: 1.176 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.603e-06/0.1224, allocations: 0 / 370.1 MB, free: 1.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005839/0.123, allocations: 229.2 kB / 370.3 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.993e-05/0.123, allocations: 81.11 kB / 370.4 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003211/0.1234, allocations: 295 kB / 370.7 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.275e-05/0.1234, allocations: 25.7 kB / 370.7 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/0.1236, allocations: 235.5 kB / 370.9 MB, free: 296 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.099e-05/0.1237, allocations: 63.09 kB / 371 MB, free: 232 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/0.1238, allocations: 62.03 kB / 371 MB, free: 164 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1662/0.29, allocations: 334.9 kB / 371.4 MB, free: 19.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003037/0.2903, allocations: 64.61 kB / 371.4 MB, free: 19.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002496/0.2906, allocations: 200.3 kB / 371.6 MB, free: 19.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000403/0.291, allocations: 286.8 kB / 371.9 MB, free: 19.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.291, allocations: 1.562 kB / 371.9 MB, free: 19.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006413/0.2917, allocations: 325.6 kB / 372.2 MB, free: 19.51 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.2917, allocations: 6.844 kB / 372.2 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.2917, allocations: 4.812 kB / 372.2 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.065e-05/0.2918, allocations: 7.578 kB / 372.2 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000335/0.2921, allocations: 82.88 kB / 372.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.979e-05/0.2921, allocations: 11.62 kB / 372.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002795/0.2924, allocations: 38.23 kB / 372.4 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.285e-05/0.2925, allocations: 16.48 kB / 372.4 MB, free: 19.5 MB / 302.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002058/0.2927, allocations: 152 kB / 372.5 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.666e-05/0.2928, allocations: 30.72 kB / 372.6 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.095e-05/0.2929, allocations: 32.72 kB / 372.6 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.2929, allocations: 1.844 kB / 372.6 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.2929, allocations: 5.125 kB / 372.6 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.2929, allocations: 1.484 kB / 372.6 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007575/0.2937, allocations: 0.5156 MB / 373.1 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.2937, allocations: 1.062 kB / 373.1 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/0.2939, allocations: 42.86 kB / 373.2 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.2939, allocations: 6.875 kB / 373.2 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.2939, allocations: 6.859 kB / 373.2 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.2939, allocations: 6.125 kB / 373.2 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.294, allocations: 5.953 kB / 373.2 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005145/0.2945, allocations: 416.6 kB / 373.6 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.39e-05/0.2945, allocations: 109.2 kB / 373.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.916e-05/0.2946, allocations: 3.156 kB / 373.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002065/0.2948, allocations: 18.03 kB / 373.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.004e-05/0.2949, allocations: 10.02 kB / 373.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.2949, allocations: 7.25 kB / 373.7 MB, free: 18.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001998/0.2951, allocations: 201 kB / 373.9 MB, free: 18.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2951, allocations: 3.938 kB / 373.9 MB, free: 18.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004498/0.2955, allocations: 83.73 kB / 374 MB, free: 18.63 MB / 302.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000756/0.2963, allocations: 0.9708 MB / 375 MB, free: 17.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004934/0.2968, allocations: 197.6 kB / 375.2 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.2968, allocations: 0.5312 kB / 375.2 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001619/0.297, allocations: 70.5 kB / 375.3 MB, free: 17.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005254/0.2975, allocations: 37.03 kB / 375.3 MB, free: 17.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00341/0.301, allocations: 3.149 MB / 378.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002464/0.3012, allocations: 0.7744 MB / 379.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001568/0.3014, allocations: 30.95 kB / 379.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.3015, allocations: 105.8 kB / 379.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3015, allocations: 0 / 379.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03084/0.3324, allocations: 5.436 MB / 384.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.795/8.128, allocations: 12.83 kB / 384.8 MB, free: 14.05 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1)