Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.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 trunk/package.mo", uses=false) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001165/0.001165, allocations: 114.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001382/0.001382, allocations: 198 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 67.88 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.3086, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.02136/0.33, allocations: 20.18 MB / 429 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01343/0.3435, allocations: 5.919 MB / 434.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004798/0.3483, allocations: 127.6 kB / 435 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004646/0.3531, allocations: 1.359 MB / 436.4 MB, free: 5.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006979/0.3601, allocations: 1.957 MB / 438.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003984/0.3641, allocations: 1.219 MB / 439.5 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009374/0.3735, allocations: 6.429 MB / 446 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009089/0.3826, allocations: 5.424 MB / 451.4 MB, free: 6.688 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005751/0.3884, allocations: 2.999 MB / 454.4 MB, free: 3.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006331/0.3947, allocations: 3.608 MB / 458 MB, free: 60 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002408/0.3971, allocations: 0.8047 MB / 458.8 MB, free: 15.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003783/0.4009, allocations: 1.086 MB / 459.9 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003211/0.4042, allocations: 1.987 MB / 461.9 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006782/0.411, allocations: 3.45 MB / 465.3 MB, free: 8.711 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01621/0.4272, allocations: 10.69 MB / 476 MB, free: 13.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.4273, allocations: 0 / 476 MB, free: 13.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4273, allocations: 0 / 476 MB, free: 13.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004352/0.4277, allocations: 4 kB / 476 MB, free: 13.98 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.02176/0.4495, allocations: 6.887 MB / 482.9 MB, free: 7 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.4496, allocations: 12.03 kB / 482.9 MB, free: 6.988 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001641/0.4512, allocations: 0.7039 MB / 483.6 MB, free: 6.273 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005502/0.4567, allocations: 1.133 MB / 484.8 MB, free: 5.137 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008437/0.4652, allocations: 3.766 MB / 488.5 MB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003009/0.4655, allocations: 390.4 kB / 488.9 MB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001158/0.4667, allocations: 0.4999 MB / 489.4 MB, free: 424 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01369/0.4804, allocations: 6.949 MB / 496.4 MB, free: 9.387 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001328/0.4805, allocations: 15.94 kB / 496.4 MB, free: 9.371 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005094/0.4811, allocations: 208 kB / 496.6 MB, free: 9.168 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002263/0.4813, allocations: 238.2 kB / 496.8 MB, free: 8.934 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01113/0.4924, allocations: 5.931 MB / 0.491 GB, free: 2.992 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03987/0.5323, allocations: 21.23 MB / 0.5117 GB, free: 13.27 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00905/0.5414, allocations: 8.725 MB / 0.5202 GB, free: 3.598 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003738/0.5452, allocations: 2.362 MB / 0.5225 GB, free: 1.234 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01197/0.5572, allocations: 6.355 MB / 0.5287 GB, free: 10.71 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.343e-05/0.5573, allocations: 64.48 kB / 0.5288 GB, free: 10.64 MB / 462.1 MB Notification: Performance of pre-optimization done (n=219): time 6.242e-06/0.5573, allocations: 0 / 0.5288 GB, free: 10.64 MB / 462.1 MB Notification: Performance of matching and sorting (n=238): time 0.2827/0.84, allocations: 11.38 MB / 0.5399 GB, free: 119.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.8402, allocations: 79.03 kB / 0.54 GB, free: 119.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005691/0.8459, allocations: 3.019 MB / 0.5429 GB, free: 118.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000517/0.8464, allocations: 69.58 kB / 0.543 GB, free: 118.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001423/0.8478, allocations: 2.383 MB / 0.5453 GB, free: 117.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000682/0.8485, allocations: 0.8593 MB / 0.5461 GB, free: 117.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007381/0.8493, allocations: 0.5059 MB / 0.5466 GB, free: 116.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.65e-05/0.8493, allocations: 304.2 kB / 0.5469 GB, free: 116.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001814/0.8512, allocations: 1.35 MB / 0.5483 GB, free: 116.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002121/0.8533, allocations: 2.136 MB / 0.5503 GB, free: 114.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004136/0.8574, allocations: 3.691 MB / 0.5539 GB, free: 112.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-05/0.8575, allocations: 7.625 kB / 0.5539 GB, free: 112.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.006496/0.864, allocations: 4.678 MB / 0.5585 GB, free: 110.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/0.864, allocations: 15.47 kB / 0.5585 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.228e-05/0.864, allocations: 24.12 kB / 0.5586 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001545/0.8656, allocations: 0.7606 MB / 0.5593 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002013/0.8676, allocations: 0.6308 MB / 0.5599 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009466/0.8771, allocations: 14.54 MB / 0.5741 GB, free: 96.71 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002927/0.88, allocations: 159.8 kB / 0.5743 GB, free: 96.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002631/0.8803, allocations: 120 kB / 0.5744 GB, free: 96.44 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (324): * Single equations (assignments): 314 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002796/0.8831, allocations: 1.614 MB / 0.576 GB, free: 94.83 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006662/0.8838, allocations: 341.8 kB / 0.5763 GB, free: 94.49 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005774/0.8896, allocations: 4.197 MB / 0.5804 GB, free: 90.22 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/0.8896, allocations: 24 kB / 0.5804 GB, free: 90.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/0.8896, allocations: 12 kB / 0.5804 GB, free: 90.18 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.586e-05/0.8897, allocations: 11.95 kB / 0.5804 GB, free: 90.17 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01275/0.9024, allocations: 9.125 MB / 0.5893 GB, free: 80.93 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.9025, allocations: 4 kB / 0.5893 GB, free: 80.92 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/0.9039, allocations: 376 kB / 0.5897 GB, free: 80.55 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002027/0.9059, allocations: 0.9375 MB / 0.5906 GB, free: 79.59 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001453/0.9061, allocations: 63.97 kB / 0.5907 GB, free: 79.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01319/0.9193, allocations: 17.99 MB / 0.6082 GB, free: 60.46 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.9193, allocations: 11.94 kB / 0.6083 GB, free: 60.45 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008115/0.9274, allocations: 6.066 MB / 0.6142 GB, free: 54.25 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002069/0.9295, allocations: 0.7096 MB / 0.6149 GB, free: 53.52 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005246/0.9301, allocations: 62.94 kB / 0.6149 GB, free: 53.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001486/0.9316, allocations: 135.9 kB / 0.6151 GB, free: 53.33 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000461/0.932, allocations: 193.6 kB / 0.6152 GB, free: 53.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001334/0.9322, allocations: 71.97 kB / 0.6153 GB, free: 53.07 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002599/0.9348, allocations: 2.058 MB / 0.6173 GB, free: 51.02 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9348, allocations: 0 / 0.6173 GB, free: 51.02 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003948/0.9388, allocations: 0.9823 MB / 0.6183 GB, free: 50.04 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.zeroInductor.i0,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,12,100.0%), (1,1,100.0%), (1,8,100.0%), (2,1,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00875/0.9475, allocations: 6.8 MB / 0.6249 GB, free: 43.12 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006046/0.9536, allocations: 4.588 MB / 0.6294 GB, free: 38.38 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/0.9536, allocations: 0 / 0.6294 GB, free: 38.38 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003824/0.9574, allocations: 3.044 MB / 0.6324 GB, free: 35.21 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005459/0.9629, allocations: 0.9239 MB / 0.6333 GB, free: 34.31 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05494/1.018, allocations: 35.28 MB / 0.6677 GB, free: 13.89 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003707/1.022, allocations: 3.451 MB / 0.6711 GB, free: 10.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002709/1.024, allocations: 0.7738 MB / 0.6719 GB, free: 9.621 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002816/1.027, allocations: 1.964 MB / 0.6738 GB, free: 7.656 MB / 478.1 MB Notification: Performance of SimCode: time 1.553e-06/1.027, allocations: 0 / 0.6738 GB, free: 7.656 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.426/1.453, allocations: 87.17 MB / 0.7589 GB, free: 180.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.3/17.75, allocations: 13.66 kB / 0.7589 GB, free: 180.9 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_DOL/IMC_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches