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.001359/0.00136, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001523/0.001523, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2772, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.02528/0.3025, allocations: 20.18 MB / 429 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01358/0.3161, allocations: 5.911 MB / 434.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00406/0.3202, allocations: 127.5 kB / 435 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004424/0.3247, allocations: 1.316 MB / 436.3 MB, free: 5.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006562/0.3313, allocations: 1.894 MB / 438.2 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003603/0.335, allocations: 1.206 MB / 439.4 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009631/0.3446, allocations: 6.428 MB / 445.8 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00764/0.3523, allocations: 5.421 MB / 451.3 MB, free: 6.816 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0054/0.3577, allocations: 2.979 MB / 454.2 MB, free: 3.828 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007089/0.3648, allocations: 3.608 MB / 457.8 MB, free: 212 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002464/0.3673, allocations: 0.8008 MB / 458.6 MB, free: 15.4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003757/0.3711, allocations: 1.089 MB / 459.7 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002889/0.374, allocations: 1.979 MB / 461.7 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007003/0.3811, allocations: 3.454 MB / 465.2 MB, free: 8.863 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01668/0.3978, allocations: 10.69 MB / 475.9 MB, free: 14.13 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.3978, allocations: 0 / 475.9 MB, free: 14.13 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.3979, allocations: 0 / 475.9 MB, free: 14.13 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004263/0.3983, allocations: 4 kB / 475.9 MB, free: 14.13 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.02154/0.4198, allocations: 6.889 MB / 482.8 MB, free: 7.152 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.95e-05/0.4199, allocations: 12.03 kB / 482.8 MB, free: 7.141 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002212/0.4221, allocations: 0.7039 MB / 483.5 MB, free: 6.426 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006406/0.4286, allocations: 1.137 MB / 484.6 MB, free: 5.285 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008858/0.4375, allocations: 3.766 MB / 488.4 MB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004577/0.438, allocations: 390.4 kB / 488.8 MB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002042/0.44, allocations: 0.5038 MB / 489.3 MB, free: 0.5586 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01723/0.4572, allocations: 6.953 MB / 496.2 MB, free: 9.527 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001643/0.4575, allocations: 11.94 kB / 496.2 MB, free: 9.516 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008274/0.4583, allocations: 208 kB / 496.4 MB, free: 9.312 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002831/0.4586, allocations: 234.2 kB / 496.7 MB, free: 9.082 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01364/0.4722, allocations: 5.935 MB / 0.4908 GB, free: 3.137 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04267/0.5149, allocations: 21.22 MB / 0.5115 GB, free: 13.42 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009806/0.5248, allocations: 8.725 MB / 0.5201 GB, free: 3.746 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004442/0.5293, allocations: 2.37 MB / 0.5224 GB, free: 1.379 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0118/0.5411, allocations: 6.355 MB / 0.5286 GB, free: 10.86 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.929e-05/0.5412, allocations: 60.5 kB / 0.5286 GB, free: 10.79 MB / 462.1 MB Notification: Performance of pre-optimization done (n=219): time 6.101e-06/0.5412, allocations: 4 kB / 0.5286 GB, free: 10.78 MB / 462.1 MB Notification: Performance of matching and sorting (n=238): time 0.2446/0.7858, allocations: 11.37 MB / 0.5398 GB, free: 119.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.794e-05/0.7859, allocations: 76.28 kB / 0.5398 GB, free: 119.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005696/0.7916, allocations: 3.024 MB / 0.5428 GB, free: 118.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004969/0.7921, allocations: 65.58 kB / 0.5428 GB, free: 118.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001336/0.7935, allocations: 2.383 MB / 0.5452 GB, free: 117.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007054/0.7942, allocations: 0.8546 MB / 0.546 GB, free: 117.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006901/0.7949, allocations: 0.5108 MB / 0.5465 GB, free: 116.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.851e-05/0.795, allocations: 305.1 kB / 0.5468 GB, free: 116.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001894/0.7969, allocations: 1.357 MB / 0.5481 GB, free: 116.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002549/0.7994, allocations: 2.132 MB / 0.5502 GB, free: 114.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004222/0.8037, allocations: 3.687 MB / 0.5538 GB, free: 112.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.048e-05/0.8037, allocations: 10.58 kB / 0.5538 GB, free: 112.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.006748/0.8105, allocations: 4.682 MB / 0.5584 GB, free: 110.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.52e-05/0.8105, allocations: 14.81 kB / 0.5584 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-05/0.8106, allocations: 22.56 kB / 0.5584 GB, free: 110.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001623/0.8122, allocations: 0.7583 MB / 0.5592 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002609/0.8148, allocations: 0.6252 MB / 0.5598 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009749/0.8246, allocations: 14.55 MB / 0.574 GB, free: 96.88 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002691/0.8273, allocations: 153.9 kB / 0.5741 GB, free: 96.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003598/0.8277, allocations: 124 kB / 0.5742 GB, free: 96.61 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.002888/0.8306, allocations: 1.601 MB / 0.5758 GB, free: 95.02 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007649/0.8314, allocations: 353.7 kB / 0.5761 GB, free: 94.67 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005825/0.8372, allocations: 4.201 MB / 0.5802 GB, free: 90.39 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-05/0.8372, allocations: 27.94 kB / 0.5803 GB, free: 90.36 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-05/0.8373, allocations: 9.25 kB / 0.5803 GB, free: 90.36 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.799e-05/0.8373, allocations: 11.95 kB / 0.5803 GB, free: 90.34 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01265/0.8499, allocations: 9.115 MB / 0.5892 GB, free: 81.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/0.85, allocations: 4 kB / 0.5892 GB, free: 81.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00148/0.8515, allocations: 371.4 kB / 0.5895 GB, free: 80.74 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002048/0.8535, allocations: 0.9351 MB / 0.5905 GB, free: 79.78 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001797/0.8537, allocations: 67.91 kB / 0.5905 GB, free: 79.71 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01222/0.866, allocations: 17.99 MB / 0.6081 GB, free: 60.64 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.866, allocations: 4 kB / 0.6081 GB, free: 60.64 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007668/0.8737, allocations: 6.069 MB / 0.614 GB, free: 54.44 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001452/0.8752, allocations: 0.7262 MB / 0.6147 GB, free: 53.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004422/0.8756, allocations: 59.98 kB / 0.6148 GB, free: 53.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001426/0.877, allocations: 127.8 kB / 0.6149 GB, free: 53.51 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004266/0.8775, allocations: 197.8 kB / 0.6151 GB, free: 53.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001352/0.8776, allocations: 71.97 kB / 0.6152 GB, free: 53.25 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00262/0.8802, allocations: 2.058 MB / 0.6172 GB, free: 51.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.8803, allocations: 0 / 0.6172 GB, free: 51.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002907/0.8832, allocations: 0.9804 MB / 0.6181 GB, free: 50.22 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.007494/0.8907, allocations: 6.793 MB / 0.6248 GB, free: 43.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005356/0.8961, allocations: 4.588 MB / 0.6293 GB, free: 38.56 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.8961, allocations: 0 / 0.6293 GB, free: 38.56 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003432/0.8995, allocations: 3.057 MB / 0.6322 GB, free: 35.39 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003656/0.9032, allocations: 0.9113 MB / 0.6331 GB, free: 34.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04398/0.9472, allocations: 35.3 MB / 0.6676 GB, free: 14.05 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003834/0.9511, allocations: 3.436 MB / 0.671 GB, free: 10.59 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002491/0.9536, allocations: 0.7738 MB / 0.6717 GB, free: 9.809 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002749/0.9563, allocations: 1.972 MB / 0.6736 GB, free: 7.836 MB / 478.1 MB Notification: Performance of SimCode: time 3.096e-06/0.9563, allocations: 0 / 0.6736 GB, free: 7.836 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4087/1.365, allocations: 87.17 MB / 0.7588 GB, free: 180.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.56/18.93, allocations: 6.266 kB / 0.7588 GB, free: 180.8 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.1.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