Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",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.001791/0.00179, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001982/0.001982, allocations: 183.1 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.47/1.47, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 48.34 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08661/0.08792, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase): time 0.2361/0.324, allocations: 23.71 MB / 398.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0169/0.341, allocations: 6.496 MB / 404.9 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006964/0.348, allocations: 136.1 kB / 405 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007536/0.3556, allocations: 1.643 MB / 406.7 MB, free: 8.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01409/0.3698, allocations: 2.286 MB / 408.9 MB, free: 7.129 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005886/0.3757, allocations: 1.429 MB / 410.4 MB, free: 6.203 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01598/0.3917, allocations: 9.872 MB / 420.2 MB, free: 276 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01392/0.4057, allocations: 7.984 MB / 428.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009078/0.4148, allocations: 4.67 MB / 432.9 MB, free: 5.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0103/0.4251, allocations: 5.266 MB / 438.2 MB, free: 308 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004765/0.4299, allocations: 1.301 MB / 439.5 MB, free: 15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00688/0.4368, allocations: 1.496 MB / 441 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00489/0.4417, allocations: 2.949 MB / 443.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009974/0.4517, allocations: 5.407 MB / 449.3 MB, free: 5.117 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02267/0.4744, allocations: 17.06 MB / 466.4 MB, free: 4.008 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.4745, allocations: 0 / 466.4 MB, free: 4.008 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4745, allocations: 0 / 466.4 MB, free: 4.008 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.00056/0.4751, allocations: 0 / 466.4 MB, free: 4.008 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: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.03407/0.5092, allocations: 10.8 MB / 477.2 MB, free: 9.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.5092, allocations: 8.031 kB / 477.2 MB, free: 9.082 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00426/0.5135, allocations: 1.099 MB / 478.3 MB, free: 7.973 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01264/0.5262, allocations: 2.079 MB / 480.4 MB, free: 5.887 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0143/0.5405, allocations: 5.612 MB / 486 MB, free: 212 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007069/0.5412, allocations: 0.5946 MB / 486.6 MB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003048/0.5443, allocations: 0.785 MB / 487.4 MB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03107/0.5754, allocations: 11.32 MB / 498.7 MB, free: 3.391 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005101/0.576, allocations: 19.88 kB / 498.7 MB, free: 3.371 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002885/0.5789, allocations: 328 kB / 499 MB, free: 3.051 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004876/0.5794, allocations: 380.3 kB / 499.4 MB, free: 2.676 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02477/0.6042, allocations: 9.878 MB / 0.4973 GB, free: 8.773 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07057/0.6748, allocations: 34.13 MB / 0.5307 GB, free: 5.93 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3665/1.041, allocations: 19.9 MB / 0.5501 GB, free: 141.2 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007186/1.049, allocations: 3.658 MB / 0.5537 GB, free: 141.2 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02098/1.07, allocations: 9.5 MB / 0.5629 GB, free: 136.9 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.918e-05/1.07, allocations: 69.41 kB / 0.563 GB, free: 136.8 MB / 478.1 MB Notification: Performance of pre-optimization done (n=321): time 6.272e-06/1.07, allocations: 5.375 kB / 0.563 GB, free: 136.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=327): time 0.03358/1.103, allocations: 15.31 MB / 0.578 GB, free: 130.4 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.799e-05/1.103, allocations: 85.11 kB / 0.578 GB, free: 130.4 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0101/1.114, allocations: 4.412 MB / 0.5824 GB, free: 128.8 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006367/1.114, allocations: 81.3 kB / 0.5824 GB, free: 128.7 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002244/1.116, allocations: 3.645 MB / 0.586 GB, free: 126.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001217/1.118, allocations: 1.156 MB / 0.5871 GB, free: 125.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001024/1.119, allocations: 0.7006 MB / 0.5878 GB, free: 125.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.578e-05/1.119, allocations: 306 kB / 0.5881 GB, free: 124.9 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002498/1.121, allocations: 1.841 MB / 0.5899 GB, free: 124.2 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002717/1.124, allocations: 2.925 MB / 0.5928 GB, free: 122.2 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005256/1.129, allocations: 5.008 MB / 0.5976 GB, free: 119.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.848e-05/1.129, allocations: 11.84 kB / 0.5977 GB, free: 119.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=502) (initialization): time 0.00839/1.138, allocations: 6.129 MB / 0.6036 GB, free: 113.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/1.138, allocations: 20 kB / 0.6037 GB, free: 113.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.952e-05/1.138, allocations: 32 kB / 0.6037 GB, free: 113.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001817/1.14, allocations: 0.8472 MB / 0.6045 GB, free: 112.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002935/1.143, allocations: 0.8268 MB / 0.6053 GB, free: 111.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/1.154, allocations: 16.29 MB / 0.6212 GB, free: 94.25 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003674/1.158, allocations: 189.9 kB / 0.6214 GB, free: 94.07 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005709/1.158, allocations: 164 kB / 0.6216 GB, free: 93.91 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 148 * Number of states: 0 () * Number of discrete variables: 8 (idealCloser3.control[3],idealCloser3.control[2],idealCloser3.control[1],idealCloserM.control[5],idealCloserM.control[4],idealCloserM.control[3],idealCloserM.control[2],idealCloserM.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (439): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(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,5,100.0%), (1,1,100.0%), (3,23,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (4,22,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004226/1.162, allocations: 2.6 MB / 0.6241 GB, free: 91.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001118/1.164, allocations: 477 kB / 0.6246 GB, free: 90.83 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008288/1.172, allocations: 5.699 MB / 0.6301 GB, free: 85.02 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.927e-05/1.172, allocations: 32 kB / 0.6302 GB, free: 84.98 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.033e-05/1.172, allocations: 20 kB / 0.6302 GB, free: 84.96 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.284e-05/1.172, allocations: 16.81 kB / 0.6302 GB, free: 84.95 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02036/1.192, allocations: 12.69 MB / 0.6426 GB, free: 72.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/1.192, allocations: 4.031 kB / 0.6426 GB, free: 72.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001564/1.194, allocations: 375.5 kB / 0.6429 GB, free: 71.73 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003253/1.197, allocations: 1.447 MB / 0.6444 GB, free: 70.25 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002568/1.197, allocations: 91.95 kB / 0.6444 GB, free: 70.16 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02077/1.218, allocations: 26.47 MB / 0.6703 GB, free: 42.48 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.218, allocations: 6.266 kB / 0.6703 GB, free: 42.48 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01169/1.23, allocations: 8.187 MB / 0.6783 GB, free: 34.11 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002942/1.233, allocations: 0.9782 MB / 0.6793 GB, free: 33.11 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00113/1.234, allocations: 79.98 kB / 0.6793 GB, free: 33.03 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002358/1.237, allocations: 163.9 kB / 0.6795 GB, free: 32.87 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007341/1.237, allocations: 321.9 kB / 0.6798 GB, free: 32.55 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001886/1.237, allocations: 91.97 kB / 0.6799 GB, free: 32.46 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004446/1.242, allocations: 3.025 MB / 0.6828 GB, free: 29.43 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.242, allocations: 0 / 0.6828 GB, free: 29.43 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006269/1.248, allocations: 1.445 MB / 0.6842 GB, free: 27.99 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (idealCloserM.control[1],idealCloserM.control[2],idealCloserM.control[3],idealCloserM.control[4],idealCloserM.control[5],idealCloser3.control[1],idealCloser3.control[2],idealCloser3.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 188 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(1,1,100.0%), (1,13,100.0%), (1,5,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (3,23,100.0%), (6,46,72.2%), (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.01171/1.26, allocations: 8.868 MB / 0.6929 GB, free: 18.92 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007668/1.268, allocations: 5.72 MB / 0.6985 GB, free: 13.05 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/1.268, allocations: 0 / 0.6985 GB, free: 13.05 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005264/1.273, allocations: 4.116 MB / 0.7025 GB, free: 8.816 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005929/1.279, allocations: 1.252 MB / 0.7037 GB, free: 7.562 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3078/1.587, allocations: 50.31 MB / 0.7529 GB, free: 155 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007845/1.595, allocations: 5.104 MB / 0.7578 GB, free: 154.1 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.004083/1.599, allocations: 1.019 MB / 0.7588 GB, free: 154 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004036/1.603, allocations: 3.009 MB / 0.7618 GB, free: 152.2 MB / 0.4982 GB Notification: Performance of SimCode: time 1.082e-06/1.603, allocations: 0 / 0.7618 GB, free: 152.2 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1841/1.787, allocations: 127.5 MB / 0.8863 GB, free: 41.31 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.96/22.74, allocations: 19.62 kB / 0.8863 GB, free: 41.29 MB / 0.4982 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_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_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_DOL_MultiPhase/AIMC_DOL_MultiPhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches