Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 108.4 kB / 17.06 MB, free: 5.82 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 195 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001116, allocations: 55.91 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2774, allocations: 49.43 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.01983/0.2973, allocations: 19.53 MB / 419.8 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01156/0.3089, allocations: 5.653 MB / 425.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004139/0.3131, allocations: 119.6 kB / 425.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004452/0.3176, allocations: 1.351 MB / 426.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007868/0.3255, allocations: 1.979 MB / 428.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003889/0.3294, allocations: 1.163 MB / 430 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00967/0.3391, allocations: 6.374 MB / 436.4 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007104/0.3462, allocations: 5.409 MB / 441.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005413/0.3517, allocations: 2.987 MB / 444.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005947/0.3577, allocations: 3.472 MB / 448.3 MB, free: 8.504 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002363/0.3601, allocations: 0.8046 MB / 449.1 MB, free: 7.699 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003599/0.3637, allocations: 1.074 MB / 450.2 MB, free: 6.625 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002861/0.3666, allocations: 1.979 MB / 452.1 MB, free: 4.641 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006467/0.3731, allocations: 3.431 MB / 455.6 MB, free: 1.195 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0133/0.3864, allocations: 10.65 MB / 466.2 MB, free: 6.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3865, allocations: 0 / 466.2 MB, free: 6.512 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3865, allocations: 0 / 466.2 MB, free: 6.512 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003368/0.3868, allocations: 0 / 466.2 MB, free: 6.512 MB / 382.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.01898/0.4058, allocations: 6.851 MB / 473.1 MB, free: 15.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.4059, allocations: 12.03 kB / 473.1 MB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001531/0.4074, allocations: 0.7 MB / 473.8 MB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005396/0.4128, allocations: 1.102 MB / 474.9 MB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007977/0.4209, allocations: 3.723 MB / 478.6 MB, free: 9.945 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003546/0.4212, allocations: 391.4 kB / 479 MB, free: 9.562 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001491/0.4227, allocations: 0.5154 MB / 479.5 MB, free: 9.047 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01402/0.4368, allocations: 6.953 MB / 486.5 MB, free: 2.016 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001308/0.4369, allocations: 7.953 kB / 486.5 MB, free: 2.008 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005838/0.4375, allocations: 212 kB / 486.7 MB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002303/0.4378, allocations: 246.1 kB / 486.9 MB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01204/0.4498, allocations: 5.923 MB / 492.8 MB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0376/0.4875, allocations: 21.14 MB / 0.5019 GB, free: 6.016 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008317/0.4958, allocations: 8.702 MB / 0.5104 GB, free: 12.37 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003893/0.4998, allocations: 2.37 MB / 0.5127 GB, free: 9.996 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01137/0.5111, allocations: 6.117 MB / 0.5187 GB, free: 3.77 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.544e-05/0.5113, allocations: 60.56 kB / 0.5188 GB, free: 3.699 MB / 446.1 MB Notification: Performance of pre-optimization done (n=219): time 4.008e-06/0.5113, allocations: 0 / 0.5188 GB, free: 3.699 MB / 446.1 MB Notification: Performance of matching and sorting (n=238): time 0.0234/0.5347, allocations: 11.38 MB / 0.5299 GB, free: 8.105 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.711e-05/0.5348, allocations: 77.41 kB / 0.53 GB, free: 8.02 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004758/0.5395, allocations: 2.986 MB / 0.5329 GB, free: 5.023 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000195/0.5398, allocations: 69.64 kB / 0.5329 GB, free: 4.949 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001694/0.5415, allocations: 2.373 MB / 0.5353 GB, free: 2.555 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007655/0.5422, allocations: 0.8521 MB / 0.5361 GB, free: 1.695 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008066/0.5431, allocations: 0.5139 MB / 0.5366 GB, free: 1.172 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.835e-05/0.5432, allocations: 305.1 kB / 0.5369 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2208/0.7639, allocations: 1.346 MB / 0.5382 GB, free: 126 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003561/0.7676, allocations: 2.134 MB / 0.5403 GB, free: 125.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0044/0.772, allocations: 3.698 MB / 0.5439 GB, free: 123 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.319e-05/0.772, allocations: 7.906 kB / 0.5439 GB, free: 123 MB / 462.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.006872/0.7789, allocations: 4.674 MB / 0.5485 GB, free: 121.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.852e-05/0.779, allocations: 15.31 kB / 0.5485 GB, free: 121.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.852e-05/0.779, allocations: 27.11 kB / 0.5485 GB, free: 121.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001568/0.7806, allocations: 0.7519 MB / 0.5492 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002319/0.7829, allocations: 0.627 MB / 0.5499 GB, free: 120.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009434/0.7924, allocations: 14.54 MB / 0.5641 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00263/0.795, allocations: 150.6 kB / 0.5642 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002563/0.7953, allocations: 124.1 kB / 0.5643 GB, free: 108.6 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.002325/0.7977, allocations: 1.605 MB / 0.5659 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006602/0.7983, allocations: 339.8 kB / 0.5662 GB, free: 107.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005837/0.8042, allocations: 4.201 MB / 0.5703 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/0.8042, allocations: 27.98 kB / 0.5703 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.686e-05/0.8042, allocations: 8 kB / 0.5703 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.39e-05/0.8043, allocations: 12.66 kB / 0.5704 GB, free: 104.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01359/0.8179, allocations: 9.107 MB / 0.5793 GB, free: 95.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/0.8179, allocations: 4 kB / 0.5793 GB, free: 95.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001558/0.8195, allocations: 375.4 kB / 0.5796 GB, free: 94.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002149/0.8217, allocations: 0.9242 MB / 0.5805 GB, free: 93.83 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002979/0.822, allocations: 71.89 kB / 0.5806 GB, free: 93.76 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01227/0.8343, allocations: 18 MB / 0.5982 GB, free: 74.82 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.8343, allocations: 4 kB / 0.5982 GB, free: 74.81 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008135/0.8425, allocations: 6.067 MB / 0.6041 GB, free: 68.79 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001917/0.8444, allocations: 0.7097 MB / 0.6048 GB, free: 68.06 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000635/0.845, allocations: 55.98 kB / 0.6048 GB, free: 68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001594/0.8467, allocations: 139.8 kB / 0.605 GB, free: 67.87 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004283/0.8471, allocations: 193.7 kB / 0.6052 GB, free: 67.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/0.8472, allocations: 71.92 kB / 0.6052 GB, free: 67.61 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002835/0.8501, allocations: 2.046 MB / 0.6072 GB, free: 65.57 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.243e-06/0.8501, allocations: 0 / 0.6072 GB, free: 65.57 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004092/0.8542, allocations: 0.977 MB / 0.6082 GB, free: 64.59 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,8,100.0%), (1,13,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.008483/0.8627, allocations: 6.782 MB / 0.6148 GB, free: 57.68 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005705/0.8684, allocations: 4.603 MB / 0.6193 GB, free: 52.93 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/0.8685, allocations: 0 / 0.6193 GB, free: 52.93 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00376/0.8723, allocations: 3.051 MB / 0.6223 GB, free: 49.76 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004332/0.8766, allocations: 0.9061 MB / 0.6232 GB, free: 48.87 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04684/0.9235, allocations: 35.19 MB / 0.6575 GB, free: 12.54 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002644/0.9262, allocations: 3.439 MB / 0.6609 GB, free: 9.062 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002254/0.9285, allocations: 0.7659 MB / 0.6616 GB, free: 8.293 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002113/0.9306, allocations: 1.956 MB / 0.6635 GB, free: 6.336 MB / 462.1 MB Notification: Performance of SimCode: time 1.593e-06/0.9306, allocations: 0 / 0.6635 GB, free: 6.336 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3852/1.316, allocations: 86.75 MB / 0.7483 GB, free: 172.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.19/17.51, allocations: 12.12 kB / 0.7483 GB, free: 172.9 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches